@builder.io/sdk-react 3.0.2 → 3.0.3-0

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 (88) hide show
  1. package/lib/browser/blocks-exports.cjs +169 -32
  2. package/lib/browser/blocks-exports.mjs +1297 -887
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +17 -16
  5. package/lib/browser/server-entry-c7bda8b5.cjs +2 -0
  6. package/lib/browser/{server-entry-a2495a20.js → server-entry-da1754bd.js} +279 -237
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/accordion-388f5e60.cjs +1 -0
  10. package/lib/edge/{accordion-c020e15b.js → accordion-50de133c.js} +17 -16
  11. package/lib/edge/{blocks-27ac5b23.js → blocks-5e476ddc.js} +4 -4
  12. package/lib/edge/{blocks-cd946d16.cjs → blocks-a5193d52.cjs} +8 -8
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +13 -12
  15. package/lib/edge/{button-5cdb4f26.js → button-4261ae64.js} +2 -2
  16. package/lib/edge/{button-8572fca5.cjs → button-c6ec3aea.cjs} +1 -1
  17. package/lib/edge/{columns-3ac1fa96.js → columns-28e9fb0a.js} +12 -12
  18. package/lib/edge/{columns-c8a9cb89.cjs → columns-8c831c02.cjs} +2 -2
  19. package/lib/edge/{content-variants-23c8eec6.js → content-variants-36ca4fe5.js} +165 -124
  20. package/lib/edge/content-variants-81713434.cjs +134 -0
  21. package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
  22. package/lib/edge/dynamic-blocks-exports.cjs +3 -1
  23. package/lib/edge/dynamic-blocks-exports.mjs +5 -2
  24. package/lib/edge/{form-7fc5691b.js → form-039fb5ff.js} +13 -13
  25. package/lib/edge/{form-3d9bf265.cjs → form-e7a1dec9.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-a4845b04.js → get-class-prop-name-65d6824c.js} +1 -1
  27. package/lib/edge/{get-class-prop-name-29fd576a.cjs → get-class-prop-name-a86a3e60.cjs} +1 -1
  28. package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
  29. package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
  30. package/lib/edge/{img-388698cb.js → img-61d29fb3.js} +1 -1
  31. package/lib/edge/{img-102acaa2.cjs → img-7de3a3de.cjs} +1 -1
  32. package/lib/edge/index.cjs +1 -1
  33. package/lib/edge/index.mjs +18 -17
  34. package/lib/edge/{input-10e350a9.cjs → input-bd5387a6.cjs} +1 -1
  35. package/lib/edge/{input-5484e9e7.js → input-c8539054.js} +1 -1
  36. package/lib/edge/personalization-container-3fda6014.cjs +138 -0
  37. package/lib/edge/personalization-container-c76e4fef.js +379 -0
  38. package/lib/edge/{select-b8406bcf.js → select-6b5cda00.js} +1 -1
  39. package/lib/edge/{select-f11be7a7.cjs → select-73accaf4.cjs} +1 -1
  40. package/lib/edge/{server-entry-7ce03a4e.js → server-entry-838c1f06.js} +322 -280
  41. package/lib/edge/server-entry-ea2a8b0e.cjs +2 -0
  42. package/lib/edge/server-entry.cjs +1 -1
  43. package/lib/edge/server-entry.mjs +1 -1
  44. package/lib/edge/{slot-4ab390ec.cjs → slot-099112f1.cjs} +1 -1
  45. package/lib/edge/{slot-23f75377.js → slot-403c77da.js} +3 -3
  46. package/lib/edge/{symbol-2eafb4e0.js → symbol-97f456f4.js} +2 -2
  47. package/lib/edge/{symbol-fa343d77.cjs → symbol-ffa6e6cd.cjs} +1 -1
  48. package/lib/edge/{tabs-4c9c64f6.js → tabs-a7c94ead.js} +3 -3
  49. package/lib/edge/{tabs-7d258d82.cjs → tabs-ad55c6a7.cjs} +1 -1
  50. package/lib/node/blocks-exports.cjs +168 -31
  51. package/lib/node/blocks-exports.mjs +1403 -993
  52. package/lib/node/index.cjs +1 -1
  53. package/lib/node/index.mjs +17 -16
  54. package/lib/node/init.cjs +1 -1
  55. package/lib/node/init.mjs +3 -3
  56. package/lib/node/{server-entry-2b263dde.js → server-entry-51bc0b1d.js} +279 -237
  57. package/lib/node/server-entry-d7316893.cjs +2 -0
  58. package/lib/node/server-entry.cjs +1 -1
  59. package/lib/node/server-entry.mjs +1 -1
  60. package/lib/node/{setIvm-7eb67cd6.js → setIvm-575cf1f1.js} +1 -1
  61. package/lib/node/{setIvm-1e6f0b60.cjs → setIvm-d912cf4d.cjs} +1 -1
  62. package/lib/node/setIvm.cjs +1 -1
  63. package/lib/node/setIvm.mjs +2 -2
  64. package/lib/node/{should-force-browser-runtime-in-node-23218b19.cjs → should-force-browser-runtime-in-node-23225980.cjs} +1 -1
  65. package/lib/node/{should-force-browser-runtime-in-node-cdae9360.js → should-force-browser-runtime-in-node-66df4856.js} +1 -1
  66. package/package.json +1 -1
  67. package/types/blocks/index.d.ts +4 -0
  68. package/types/blocks/personalization-container/component-info.d.ts +2 -0
  69. package/types/blocks/personalization-container/helpers/index.d.ts +15 -0
  70. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
  71. package/types/blocks/personalization-container/helpers.d.ts +27 -0
  72. package/types/blocks/personalization-container/index.d.ts +1 -0
  73. package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
  74. package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
  75. package/types/blocks/textarea/component-info.d.ts +2 -0
  76. package/types/blocks/textarea/index.d.ts +1 -0
  77. package/types/blocks/textarea/textarea.d.ts +14 -0
  78. package/types/constants/sdk-version.d.ts +1 -1
  79. package/types/functions/filter-with-custom-targeting.d.ts +15 -0
  80. package/types/helpers/user-attributes.d.ts +17 -0
  81. package/types/index-helpers/blocks-exports.d.ts +1 -0
  82. package/types/types/builder-content.d.ts +1 -0
  83. package/types/types/input.d.ts +11 -0
  84. package/lib/browser/server-entry-75ce8600.cjs +0 -2
  85. package/lib/edge/accordion-1c16f65e.cjs +0 -1
  86. package/lib/edge/content-variants-caa23bf7.cjs +0 -134
  87. package/lib/edge/server-entry-1879cbc4.cjs +0 -2
  88. package/lib/node/server-entry-ec330556.cjs +0 -2
@@ -1,13 +1,15 @@
1
1
  "use client";
2
- import { jsx as l, Fragment as T, jsxs as N } from "react/jsx-runtime";
3
- import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as z, logger as G, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as K, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-a2495a20.js";
4
- import { createContext as Ee, useEffect as A, useState as E, useRef as O, useContext as fe, createElement as Re } from "react";
5
- const Xe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ze = (e) => typeof e == "string" && Xe.has(e.toLowerCase());
2
+ import { TARGET as F, isEditing as W, isBrowser as L, getUserAttributes as Ke, checkIsDefined as J, logger as Y, isPreviewing as X, userAttributesService as de, getDefaultCanTrack as q, logFetch as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, _track as me, fetchOneEntry as Ee, createEditorListener as Ye, serializeIncludingFunctions as fe, handleABTestingSync as Xe } from "./server-entry-da1754bd.js";
3
+ import { setClientUserAttributes as Si } from "./server-entry-da1754bd.js";
4
+ import { jsx as s, Fragment as P, jsxs as N } from "react/jsx-runtime";
5
+ import * as Ze from "react";
6
+ import { createContext as Re, useEffect as A, useState as R, useRef as D, useContext as he, createElement as Pe } from "react";
7
+ const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
6
8
  function re(e) {
7
- return /* @__PURE__ */ l(T, { children: Ze(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
9
+ return /* @__PURE__ */ s(P, { children: tt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { 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 }) }) });
8
10
  }
9
11
  const H = () => {
10
- switch ($) {
12
+ switch (F) {
11
13
  case "react":
12
14
  case "reactNative":
13
15
  case "rsc":
@@ -20,7 +22,7 @@ const H = () => {
20
22
  return "class";
21
23
  }
22
24
  };
23
- function et(e) {
25
+ function nt(e) {
24
26
  function t() {
25
27
  return {
26
28
  ...e.attributes,
@@ -34,7 +36,7 @@ function et(e) {
34
36
  }
35
37
  };
36
38
  }
37
- return /* @__PURE__ */ l(
39
+ return /* @__PURE__ */ s(
38
40
  re,
39
41
  {
40
42
  attributes: t(),
@@ -44,7 +46,7 @@ function et(e) {
44
46
  }
45
47
  );
46
48
  }
47
- const le = Ee({
49
+ const le = Re({
48
50
  content: null,
49
51
  context: {},
50
52
  localState: void 0,
@@ -59,10 +61,10 @@ const le = Ee({
59
61
  BlocksWrapperProps: {},
60
62
  nonce: "",
61
63
  model: ""
62
- }), Pe = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
64
+ }), Ve = Re({ registeredComponents: {} }), Be = (e, t, n) => {
63
65
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
64
66
  return i === void 0 || i === e ? n : i;
65
- }, tt = ({
67
+ }, it = ({
66
68
  builder: e,
67
69
  context: t,
68
70
  event: n,
@@ -74,15 +76,15 @@ const le = Ee({
74
76
  builder: e,
75
77
  context: t,
76
78
  event: n
77
- }), nt = () => ({
79
+ }), ot = () => ({
78
80
  isEditing: W(),
79
- isBrowser: D(),
80
- isServer: !D(),
81
- getUserAttributes: () => ze()
82
- }), it = (e, {
81
+ isBrowser: L(),
82
+ isServer: !L(),
83
+ getUserAttributes: () => Ke()
84
+ }), at = (e, {
83
85
  isExpression: t = !0
84
86
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
85
- function Ve({
87
+ function Ae({
86
88
  rootState: e,
87
89
  localState: t,
88
90
  rootSetState: n
@@ -92,7 +94,7 @@ function Ve({
92
94
  if (t && o in t)
93
95
  return t[o];
94
96
  const a = i[o];
95
- return typeof a == "object" && a !== null ? Ve({
97
+ return typeof a == "object" && a !== null ? Ae({
96
98
  rootState: a,
97
99
  localState: void 0,
98
100
  rootSetState: n ? (r) => {
@@ -107,7 +109,7 @@ function Ve({
107
109
  }
108
110
  });
109
111
  }
110
- const he = ({
112
+ const ge = ({
111
113
  code: e,
112
114
  builder: t,
113
115
  context: n,
@@ -116,35 +118,35 @@ const he = ({
116
118
  rootSetState: a,
117
119
  rootState: r
118
120
  }) => {
119
- const s = tt({
121
+ const l = it({
120
122
  builder: t,
121
123
  context: n,
122
124
  event: i,
123
- state: Ve({
125
+ state: Ae({
124
126
  rootState: r,
125
127
  localState: o,
126
128
  rootSetState: a
127
129
  })
128
130
  });
129
- return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
131
+ return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
130
132
  };
131
- function ot() {
133
+ function rt() {
132
134
  var e;
133
- return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
135
+ return typeof process != "undefined" && J((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
134
136
  }
135
- const at = ({
137
+ const lt = ({
136
138
  shouldLogWarning: e
137
139
  }) => {
138
140
  var o;
139
- if (!ot())
141
+ if (!rt())
140
142
  return !1;
141
143
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
142
- return t && n && !i ? (e && G.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;
143
- }, rt = (e) => (D() || at({
144
+ return t && n && !i ? (e && Y.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;
145
+ }, st = (e) => (L() || lt({
144
146
  shouldLogWarning: !0
145
- }), he(e)), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
147
+ }), ge(e)), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ut = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
146
148
  var t, n, i, o, a, r;
147
- return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
149
+ return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ut.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
148
150
  };
149
151
  function U({
150
152
  code: e,
@@ -157,17 +159,17 @@ function U({
157
159
  }) {
158
160
  if (e.trim() === "")
159
161
  return;
160
- const s = ct(e.trim());
161
- if (s)
162
+ const l = dt(e.trim());
163
+ if (l)
162
164
  return Be({
163
165
  ...i,
164
166
  ...n
165
- }, s);
166
- const d = {
167
- code: it(e, {
167
+ }, l);
168
+ const u = {
169
+ code: at(e, {
168
170
  isExpression: r
169
171
  }),
170
- builder: nt(),
172
+ builder: ot(),
171
173
  context: t,
172
174
  event: a,
173
175
  rootSetState: o,
@@ -175,23 +177,23 @@ function U({
175
177
  localState: n
176
178
  };
177
179
  try {
178
- return rt(d);
180
+ return st(u);
179
181
  } catch (c) {
180
- G.error("Failed code evaluation: " + c.message, {
182
+ Y.error("Failed code evaluation: " + c.message, {
181
183
  code: e
182
184
  });
183
185
  return;
184
186
  }
185
187
  }
186
- function dt(e, t) {
188
+ function mt(e, t) {
187
189
  var n;
188
190
  return {
189
191
  ...(n = e.component) == null ? void 0 : n.options,
190
192
  ...e.options,
191
- ...ut(e, t)
193
+ ...ft(e, t)
192
194
  };
193
195
  }
194
- const ut = (e, t) => {
196
+ const ft = (e, t) => {
195
197
  var n, i;
196
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
197
199
  return {
@@ -205,13 +207,13 @@ const ut = (e, t) => {
205
207
  }))
206
208
  };
207
209
  };
208
- function mt(e, ...t) {
210
+ function ht(e, ...t) {
209
211
  const n = Object.assign({}, e);
210
212
  for (const i of t)
211
213
  delete n[i];
212
214
  return n;
213
215
  }
214
- function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
216
+ function G(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
215
217
  if (e == null || typeof e != "object") {
216
218
  t(e, (a) => {
217
219
  n !== null && i !== null && (n[i] = a);
@@ -219,59 +221,59 @@ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
219
221
  return;
220
222
  }
221
223
  o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
222
- t(a, (d) => {
223
- e[r] = d;
224
- }), J(a, t, e, r, o);
224
+ t(a, (u) => {
225
+ e[r] = u;
226
+ }), G(a, t, e, r, o);
225
227
  }) : Object.entries(e).forEach(([a, r]) => {
226
- t(r, (d) => {
227
- e[a] = d;
228
- }), J(r, t, e, a, o);
228
+ t(r, (u) => {
229
+ e[a] = u;
230
+ }), G(r, t, e, a, o);
229
231
  }));
230
232
  }
231
- function Ae(e) {
233
+ function Ne(e) {
232
234
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
233
235
  }
234
- function ft(e) {
236
+ function gt(e) {
235
237
  if (!e || !Object.getOwnPropertyNames(e).length)
236
238
  return !1;
237
239
  let t = !1;
238
- return J(e, (n) => {
239
- if (Ae(n)) {
240
+ return G(e, (n) => {
241
+ if (Ne(n)) {
240
242
  t = !0;
241
243
  return;
242
244
  }
243
245
  }), t;
244
246
  }
245
- function ht(e, t) {
246
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
247
+ function bt(e, t) {
248
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (G(e, (n, i) => {
247
249
  var o;
248
- Ae(n) && i((o = n[t]) != null ? o : void 0);
250
+ Ne(n) && i((o = n[t]) != null ? o : void 0);
249
251
  }), e);
250
252
  }
251
- function gt(e, t) {
253
+ function pt(e, t) {
252
254
  var n, i;
253
- return (n = e.component) != null && n.options && ft((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ht(e.component.options, t != null ? t : "Default")), e;
255
+ return (n = e.component) != null && n.options && gt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = bt(e.component.options, t != null ? t : "Default")), e;
254
256
  }
255
- const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
257
+ const se = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
256
258
  if (Object(e) !== e)
257
259
  return e;
258
260
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
259
261
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
260
262
  };
261
- function ie(e) {
263
+ function ae(e) {
262
264
  if (e === null || typeof e != "object")
263
265
  return e;
264
266
  if (Array.isArray(e))
265
- return e.map((n) => ie(n));
267
+ return e.map((n) => ae(n));
266
268
  if (e["@type"] === "@builder.io/sdk:Element")
267
269
  return e;
268
270
  const t = {};
269
271
  for (const n in e)
270
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
272
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
271
273
  return t;
272
274
  }
273
- const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
274
- if (bt) {
275
+ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) => {
276
+ if (yt) {
275
277
  const t = se(e);
276
278
  return {
277
279
  ...t,
@@ -283,7 +285,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
283
285
  }
284
286
  };
285
287
  } else {
286
- const t = ie(mt(e, "children", "meta"));
288
+ const t = ae(ht(e, "children", "meta"));
287
289
  return {
288
290
  ...t,
289
291
  properties: {
@@ -296,7 +298,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
296
298
  meta: e.meta
297
299
  };
298
300
  }
299
- }, yt = ({
301
+ }, xt = ({
300
302
  block: e,
301
303
  context: t,
302
304
  localState: n,
@@ -305,28 +307,28 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
305
307
  }) => {
306
308
  if (!e.bindings)
307
309
  return e;
308
- const a = pt(e);
310
+ const a = vt(e);
309
311
  for (const r in e.bindings) {
310
- const s = e.bindings[r], d = U({
311
- code: s,
312
+ const l = e.bindings[r], u = U({
313
+ code: l,
312
314
  localState: n,
313
315
  rootState: i,
314
316
  rootSetState: o,
315
317
  context: t
316
318
  });
317
- Ne(a, r, d);
319
+ We(a, r, u);
318
320
  }
319
321
  return a;
320
322
  };
321
- function xt({
323
+ function St({
322
324
  block: e,
323
325
  context: t,
324
326
  localState: n,
325
327
  rootState: i,
326
328
  rootSetState: o
327
329
  }) {
328
- let a = gt(e, i.locale);
329
- return a = a, yt({
330
+ let a = pt(e, i.locale);
331
+ return a = a, xt({
330
332
  block: a,
331
333
  localState: n,
332
334
  rootState: i,
@@ -334,17 +336,17 @@ function xt({
334
336
  context: t
335
337
  });
336
338
  }
337
- const Y = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
338
- function vt(e, t, n = {}) {
339
- let i, o, a, r = null, s = 0;
340
- const d = function() {
341
- s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
339
+ const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
+ function kt(e, t, n = {}) {
341
+ let i, o, a, r = null, l = 0;
342
+ const u = function() {
343
+ l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
342
344
  };
343
345
  return function() {
344
346
  const c = Date.now();
345
- !s && n.leading === !1 && (s = c);
346
- const h = t - (c - s);
347
- return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
347
+ !l && n.leading === !1 && (l = c);
348
+ const h = t - (c - l);
349
+ return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(u, h)), a;
348
350
  };
349
351
  }
350
352
  function _(e, ...t) {
@@ -357,118 +359,118 @@ function _(e, ...t) {
357
359
  }
358
360
  return n;
359
361
  }
360
- function St(e) {
362
+ function Ct(e) {
361
363
  for (const t of e)
362
364
  switch (t.trigger) {
363
365
  case "pageLoad":
364
- $e(t);
366
+ Fe(t);
365
367
  break;
366
368
  case "scrollInView":
367
- Ct(t);
369
+ Tt(t);
368
370
  break;
369
371
  }
370
372
  }
371
- function We(e) {
373
+ function $e(e) {
372
374
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
373
375
  }
374
- function Fe(e, t) {
375
- const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
376
- for (const s of r)
377
- for (const d of n)
378
- d in s || (s[d] = i[d]);
376
+ function De(e, t) {
377
+ const n = wt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
378
+ for (const l of r)
379
+ for (const u of n)
380
+ u in l || (l[u] = i[u]);
379
381
  }
380
- function kt(e) {
382
+ function wt(e) {
381
383
  const t = [];
382
384
  for (const n of e.steps)
383
385
  for (const i in n.styles)
384
386
  t.indexOf(i) === -1 && t.push(i);
385
387
  return t;
386
388
  }
387
- function $e(e) {
389
+ function Fe(e) {
388
390
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
389
391
  if (!t.length) {
390
- We(e.elementId || e.id || "");
392
+ $e(e.elementId || e.id || "");
391
393
  return;
392
394
  }
393
395
  Array.from(t).forEach((n) => {
394
- Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
395
- n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
396
+ De(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
397
+ n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
396
398
  n.style.transition = "", n.style.transitionDelay = "";
397
399
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
398
400
  });
399
401
  });
400
402
  }
401
- function Ct(e) {
403
+ function Tt(e) {
402
404
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
403
405
  if (!t.length) {
404
- We(e.elementId || e.id || "");
406
+ $e(e.elementId || e.id || "");
405
407
  return;
406
408
  }
407
409
  Array.from(t).forEach((n) => {
408
- Fe(e, n);
410
+ De(e, n);
409
411
  let i = !1, o = !1;
410
412
  function a() {
411
- !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
413
+ !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
412
414
  _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
413
415
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
414
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
415
- })) : e.repeat && i && !o && !s(n) && (i = !1, _(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !o && !l(n) && (i = !1, _(n.style, e.steps[0].styles));
416
418
  }
417
- const r = vt(a, 200, {
419
+ const r = kt(a, 200, {
418
420
  leading: !1
419
421
  });
420
- function s(h) {
421
- const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
422
- return g.bottom > f && g.top < m - f;
422
+ function l(h) {
423
+ const b = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
424
+ return b.bottom > d && b.top < f - d;
423
425
  }
424
- const d = e.steps[0].styles;
426
+ const u = e.steps[0].styles;
425
427
  function c() {
426
- _(n.style, d);
428
+ _(n.style, u);
427
429
  }
428
430
  c(), setTimeout(() => {
429
- n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
431
+ n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
430
432
  }), document.addEventListener("scroll", r, {
431
433
  capture: !0,
432
434
  passive: !0
433
435
  }), a();
434
436
  });
435
437
  }
436
- const Le = (e) => Object.entries(e).map(([n, i]) => {
438
+ const Oe = (e) => Object.entries(e).map(([n, i]) => {
437
439
  if (typeof i == "string")
438
- return `${Y(n)}: ${i};`;
439
- }).filter(z), Tt = (e) => Le(e).join(`
440
- `), j = ({
440
+ return `${Z(n)}: ${i};`;
441
+ }).filter(J), It = (e) => Oe(e).join(`
442
+ `), z = ({
441
443
  mediaQuery: e,
442
444
  className: t,
443
445
  styles: n
444
446
  }) => {
445
447
  const i = `.${t} {
446
- ${Tt(n)}
448
+ ${It(n)}
447
449
  }`;
448
450
  return e ? `${e} {
449
451
  ${i}
450
452
  }` : i;
451
453
  };
452
- function It({
454
+ function Et({
453
455
  style: e
454
456
  }) {
455
457
  return e;
456
458
  }
457
- const wt = ({
459
+ const Rt = ({
458
460
  block: e,
459
461
  context: t
460
- }) => Oe(It({
462
+ }) => Le(Et({
461
463
  style: e.style || {},
462
464
  context: t,
463
465
  block: e
464
466
  }));
465
- function Oe(e) {
466
- switch ($) {
467
+ function Le(e) {
468
+ switch (F) {
467
469
  case "svelte":
468
470
  case "vue":
469
471
  case "solid":
470
472
  case "angular":
471
- return Le(e).join(" ");
473
+ return Oe(e).join(" ");
472
474
  case "qwik":
473
475
  case "reactNative":
474
476
  case "react":
@@ -476,7 +478,7 @@ function Oe(e) {
476
478
  return e;
477
479
  }
478
480
  }
479
- const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
481
+ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Pt = ({
480
482
  block: e,
481
483
  registeredComponents: t,
482
484
  model: n
@@ -486,14 +488,14 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
486
488
  if (!i)
487
489
  return null;
488
490
  const o = t[i];
489
- if (!o || De(o, n)) {
491
+ if (!o || Ue(o, n)) {
490
492
  console.warn(`
491
493
  Could not find a registered component named "${i}".
492
494
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
493
495
  return;
494
496
  } else
495
497
  return o;
496
- }, Rt = ({
498
+ }, Vt = ({
497
499
  block: e,
498
500
  context: t
499
501
  }) => {
@@ -513,40 +515,40 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
513
515
  if (!Array.isArray(o))
514
516
  return;
515
517
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
516
- return o.map((d, c) => ({
518
+ return o.map((u, c) => ({
517
519
  context: {
518
520
  ...t,
519
521
  localState: {
520
522
  ...t.localState,
521
523
  $index: c,
522
- $item: d,
523
- [r]: d,
524
+ $item: u,
525
+ [r]: u,
524
526
  [`$${r}Index`]: c
525
527
  }
526
528
  },
527
529
  block: i
528
530
  }));
529
- }, Pt = (e, t) => {
531
+ }, Bt = (e, t) => {
530
532
  var n;
531
533
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
532
534
  builderLinkComponent: t
533
535
  } : {};
534
- }, Bt = (e, t, n) => {
536
+ }, At = (e, t, n) => {
535
537
  var i;
536
538
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
537
- builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !De(r, n)))
539
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !Ue(r, n)))
538
540
  } : {};
539
- }, Vt = (e, t) => {
541
+ }, Nt = (e, t) => {
540
542
  var n;
541
543
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
542
544
  builderBlock: t
543
545
  } : {};
544
- }, At = (e, t) => {
546
+ }, Wt = (e, t) => {
545
547
  var n;
546
548
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
547
549
  builderContext: t
548
550
  } : {};
549
- }, Ue = {
551
+ }, _e = {
550
552
  small: {
551
553
  min: 320,
552
554
  default: 321,
@@ -562,11 +564,11 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
562
564
  default: 991,
563
565
  max: 1200
564
566
  }
565
- }, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = ({
567
+ }, be = (e, t = _e) => `@media (max-width: ${t[e].max}px)`, qe = ({
566
568
  small: e,
567
569
  medium: t
568
570
  }) => {
569
- const n = se(Ue);
571
+ const n = se(_e);
570
572
  if (!e || !t)
571
573
  return n;
572
574
  const i = Math.floor(e / 2);
@@ -589,8 +591,8 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
589
591
  default: a + 1
590
592
  }, n;
591
593
  };
592
- function Q(e) {
593
- return /* @__PURE__ */ l(
594
+ function M(e) {
595
+ return /* @__PURE__ */ s(
594
596
  "style",
595
597
  {
596
598
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -599,59 +601,59 @@ function Q(e) {
599
601
  }
600
602
  );
601
603
  }
602
- function Nt(e) {
604
+ function $t(e) {
603
605
  function t() {
604
606
  const i = e.block;
605
- return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
607
+ return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
606
608
  }
607
609
  function n() {
608
- var x, b, p;
609
- const i = e.block, o = i.responsiveStyles, a = e.context.content, r = _e(
610
- ((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
611
- ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
610
+ var v, y, x;
611
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = qe(
612
+ ((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
613
+ ), l = o == null ? void 0 : o.large, u = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
612
614
  if (!h)
613
615
  return "";
614
- const g = s ? j({
616
+ const b = l ? z({
615
617
  className: h,
616
- styles: s
617
- }) : "", m = d ? j({
618
+ styles: l
619
+ }) : "", f = u ? z({
618
620
  className: h,
619
- styles: d,
620
- mediaQuery: ge(
621
+ styles: u,
622
+ mediaQuery: be(
621
623
  "medium",
622
624
  r
623
625
  )
624
- }) : "", y = c ? j({
626
+ }) : "", p = c ? z({
625
627
  className: h,
626
628
  styles: c,
627
- mediaQuery: ge(
629
+ mediaQuery: be(
628
630
  "small",
629
631
  r
630
632
  )
631
- }) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
632
- let v = "";
633
- if (f) {
634
- const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
635
- v = j({
633
+ }) : "", d = i.animations && i.animations.find((I) => I.trigger === "hover");
634
+ let g = "";
635
+ if (d) {
636
+ const I = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
637
+ g = z({
636
638
  className: `${h}:hover`,
637
639
  styles: {
638
- ...C,
639
- transition: `all ${f.duration}s ${Y(
640
- f.easing
640
+ ...I,
641
+ transition: `all ${d.duration}s ${Z(
642
+ d.easing
641
643
  )}`,
642
- transitionDelay: f.delay ? `${f.delay}s` : "0s"
644
+ transitionDelay: d.delay ? `${d.delay}s` : "0s"
643
645
  }
644
646
  }) || "";
645
647
  }
646
648
  return [
647
- g,
648
- m,
649
- y,
650
- v
649
+ b,
650
+ f,
651
+ p,
652
+ g
651
653
  ].join(" ");
652
654
  }
653
- return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
654
- Q,
655
+ return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
656
+ M,
655
657
  {
656
658
  id: "builderio-block",
657
659
  styles: n(),
@@ -659,10 +661,10 @@ function Nt(e) {
659
661
  }
660
662
  ) }) : null });
661
663
  }
662
- function Wt(e) {
664
+ function Dt(e) {
663
665
  return e.charAt(0).toUpperCase() + e.slice(1);
664
666
  }
665
- const Ft = (e) => `on${Wt(e)}`, $t = (e, t) => (n) => U({
667
+ const Ft = (e) => `on${Dt(e)}`, Ot = (e, t) => (n) => U({
666
668
  code: e,
667
669
  context: t.context,
668
670
  localState: t.localState,
@@ -680,7 +682,7 @@ function He(e) {
680
682
  const a = n[o];
681
683
  let r = Ft(o);
682
684
  if (e.stripPrefix)
683
- switch ($) {
685
+ switch (F) {
684
686
  case "vue":
685
687
  r = r.replace("v-on:", "");
686
688
  break;
@@ -688,7 +690,7 @@ function He(e) {
688
690
  r = r.replace("on:", "");
689
691
  break;
690
692
  }
691
- t[r] = $t(a, e);
693
+ t[r] = Ot(a, e);
692
694
  }
693
695
  return t;
694
696
  }
@@ -697,7 +699,7 @@ function Lt({
697
699
  }) {
698
700
  return e;
699
701
  }
700
- const Ot = (e) => ({
702
+ const Ut = (e) => ({
701
703
  href: e.href
702
704
  });
703
705
  function ce({
@@ -706,10 +708,10 @@ function ce({
706
708
  }) {
707
709
  var i;
708
710
  const n = {
709
- ...Ot(e),
711
+ ...Ut(e),
710
712
  ...e.properties,
711
713
  "builder-id": e.id,
712
- style: wt({
714
+ style: Rt({
713
715
  block: e,
714
716
  context: t
715
717
  }),
@@ -721,8 +723,8 @@ function ce({
721
723
  block: e
722
724
  });
723
725
  }
724
- function Dt(e) {
725
- return /* @__PURE__ */ l(
726
+ function _t(e) {
727
+ return /* @__PURE__ */ s(
726
728
  re,
727
729
  {
728
730
  TagName: e.Wrapper,
@@ -742,11 +744,11 @@ function Dt(e) {
742
744
  }
743
745
  );
744
746
  }
745
- function Ut(e) {
747
+ function qt(e) {
746
748
  return A(() => {
747
- }, []), /* @__PURE__ */ l(T, { children: e.children });
749
+ }, []), /* @__PURE__ */ s(P, { children: e.children });
748
750
  }
749
- function _t(e) {
751
+ function Ht(e) {
750
752
  function t() {
751
753
  return e.includeBlockProps ? {
752
754
  ...ce({
@@ -762,8 +764,8 @@ function _t(e) {
762
764
  })
763
765
  } : {};
764
766
  }
765
- return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
766
- Ut,
767
+ return /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
768
+ qt,
767
769
  {
768
770
  load: e.Wrapper.load,
769
771
  fallback: e.Wrapper.fallback,
@@ -771,9 +773,9 @@ function _t(e) {
771
773
  attributes: t(),
772
774
  children: e.children
773
775
  }
774
- ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
776
+ ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
775
777
  }
776
- const Ht = ({
778
+ const Mt = ({
777
779
  componentOptions: e,
778
780
  builderBlock: t,
779
781
  context: n,
@@ -782,7 +784,7 @@ const Ht = ({
782
784
  isInteractive: a,
783
785
  contextValue: r
784
786
  }) => {
785
- const s = {
787
+ const l = {
786
788
  ...e,
787
789
  /**
788
790
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -801,17 +803,17 @@ const Ht = ({
801
803
  context: n,
802
804
  wrapperProps: e,
803
805
  includeBlockProps: o
804
- } : s;
806
+ } : l;
805
807
  };
806
- function be(e) {
808
+ function pe(e) {
807
809
  var i;
808
- const [t, n] = E(
809
- () => e.isInteractive ? _t : e.componentRef
810
+ const [t, n] = R(
811
+ () => e.isInteractive ? Ht : e.componentRef
810
812
  );
811
- return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
813
+ return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
812
814
  t,
813
815
  {
814
- ...Ht({
816
+ ...Mt({
815
817
  componentOptions: e.componentOptions,
816
818
  builderBlock: e.builderBlock,
817
819
  context: e.context,
@@ -821,8 +823,8 @@ function be(e) {
821
823
  isInteractive: e.isInteractive,
822
824
  contextValue: e.context
823
825
  }),
824
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
825
- M,
826
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
827
+ j,
826
828
  {
827
829
  block: o,
828
830
  context: e.context,
@@ -834,10 +836,10 @@ function be(e) {
834
836
  }
835
837
  ) }) : null });
836
838
  }
837
- function pe(e) {
838
- const [t, n] = E(() => e.repeatContext);
839
- return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
840
- M,
839
+ function ye(e) {
840
+ const [t, n] = R(() => e.repeatContext);
841
+ return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
842
+ j,
841
843
  {
842
844
  block: e.block,
843
845
  context: t,
@@ -846,64 +848,64 @@ function pe(e) {
846
848
  }
847
849
  ) });
848
850
  }
849
- function M(e) {
850
- var h, g, m, y;
851
+ function j(e) {
852
+ var h, b, f, p;
851
853
  function t() {
852
- return Rt({
854
+ return Vt({
853
855
  block: e.block,
854
856
  context: e.context
855
857
  });
856
858
  }
857
- const [n, i] = E(() => ({
859
+ const [n, i] = R(() => ({
858
860
  value: null,
859
861
  update: !1
860
862
  }));
861
863
  function o() {
862
- var v;
863
- if (n.value && !n.update && !ae())
864
+ var g;
865
+ if (n.value && !n.update && !X())
864
866
  return n.value;
865
- const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
867
+ const d = (g = e.block.repeat) != null && g.collection ? e.block : St({
866
868
  block: e.block,
867
869
  localState: e.context.localState,
868
870
  rootState: e.context.rootState,
869
871
  rootSetState: e.context.rootSetState,
870
872
  context: e.context.context
871
873
  });
872
- return n.value = f, n.update = !1, f;
874
+ return n.value = d, n.update = !1, d;
873
875
  }
874
876
  function a() {
875
- return Et({
877
+ return Pt({
876
878
  block: o(),
877
879
  registeredComponents: e.registeredComponents,
878
880
  model: e.context.model
879
881
  });
880
882
  }
881
883
  function r() {
882
- var v;
883
- return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
884
+ var g;
885
+ return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
884
886
  }
885
- function s() {
886
- var x, b;
887
- if ((x = e.block.repeat) != null && x.collection)
888
- return !!((b = t == null ? void 0 : t()) != null && b.length);
889
- const f = "hide" in o() ? o().hide : !1;
890
- return ("show" in o() ? o().show : !0) && !f;
887
+ function l() {
888
+ var v, y;
889
+ if ((v = e.block.repeat) != null && v.collection)
890
+ return !!((y = t == null ? void 0 : t()) != null && y.length);
891
+ const d = "hide" in o() ? o().hide : !1;
892
+ return ("show" in o() ? o().show : !0) && !d;
891
893
  }
892
- function d() {
893
- var v, x;
894
- return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
894
+ function u() {
895
+ var g, v;
896
+ return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (v = o().children) != null ? v : [] : [];
895
897
  }
896
898
  function c() {
897
- var f, v, x, b;
899
+ var d, g, v, y;
898
900
  return {
899
- blockChildren: (f = o().children) != null ? f : [],
900
- componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
901
+ blockChildren: (d = o().children) != null ? d : [],
902
+ componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
901
903
  componentOptions: {
902
- ...dt(o(), e.context),
903
- ...Vt(a(), o()),
904
- ...At(a(), e.context),
905
- ...Pt(a(), e.linkComponent),
906
- ...Bt(
904
+ ...mt(o(), e.context),
905
+ ...Nt(a(), o()),
906
+ ...Wt(a(), e.context),
907
+ ...Bt(a(), e.linkComponent),
908
+ ...At(
907
909
  a(),
908
910
  e.registeredComponents,
909
911
  e.context.model
@@ -913,33 +915,33 @@ function M(e) {
913
915
  linkComponent: e.linkComponent,
914
916
  registeredComponents: e.registeredComponents,
915
917
  builderBlock: o(),
916
- includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
917
- isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && $ === "rsc")
918
+ includeBlockProps: ((v = a == null ? void 0 : a()) == null ? void 0 : v.noWrap) === !0,
919
+ isInteractive: !((y = a == null ? void 0 : a()) != null && y.isRSC && F === "rsc")
918
920
  };
919
921
  }
920
922
  return A(() => {
921
- const f = o().id, v = o().animations;
922
- v && f && St(
923
- v.map((x) => ({
924
- ...x,
925
- elementId: f
923
+ const d = o().id, g = o().animations;
924
+ g && d && Ct(
925
+ g.map((v) => ({
926
+ ...v,
927
+ elementId: d
926
928
  }))
927
929
  );
928
930
  }, []), A(() => {
929
931
  n.update = !0;
930
- }), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ N(T, { children: [
931
- /* @__PURE__ */ l(Nt, { block: o(), context: e.context }),
932
- (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
933
- pe,
932
+ }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ N(P, { children: [
933
+ /* @__PURE__ */ s($t, { block: o(), context: e.context }),
934
+ (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (p = t()) == null ? void 0 : p.map((d, g) => /* @__PURE__ */ s(
935
+ ye,
934
936
  {
935
- repeatContext: f.context,
936
- block: f.block,
937
+ repeatContext: d.context,
938
+ block: d.block,
937
939
  registeredComponents: e.registeredComponents,
938
940
  linkComponent: e.linkComponent
939
941
  },
940
- v
941
- )) }) : /* @__PURE__ */ l(
942
- be,
942
+ g
943
+ )) }) : /* @__PURE__ */ s(
944
+ pe,
943
945
  {
944
946
  componentRef: c().componentRef,
945
947
  componentOptions: c().componentOptions,
@@ -951,24 +953,24 @@ function M(e) {
951
953
  includeBlockProps: c().includeBlockProps,
952
954
  isInteractive: c().isInteractive
953
955
  }
954
- ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
955
- pe,
956
+ ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (f = t()) == null ? void 0 : f.map((d, g) => /* @__PURE__ */ s(
957
+ ye,
956
958
  {
957
- repeatContext: f.context,
958
- block: f.block,
959
+ repeatContext: d.context,
960
+ block: d.block,
959
961
  registeredComponents: e.registeredComponents,
960
962
  linkComponent: e.linkComponent
961
963
  },
962
- v
964
+ g
963
965
  )) }) : /* @__PURE__ */ N(
964
- Dt,
966
+ _t,
965
967
  {
966
968
  Wrapper: r(),
967
969
  block: o(),
968
970
  context: e.context,
969
971
  children: [
970
- /* @__PURE__ */ l(
971
- be,
972
+ /* @__PURE__ */ s(
973
+ pe,
972
974
  {
973
975
  componentRef: c().componentRef,
974
976
  componentOptions: c().componentOptions,
@@ -981,23 +983,23 @@ function M(e) {
981
983
  isInteractive: c().isInteractive
982
984
  }
983
985
  ),
984
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
985
- M,
986
+ (b = u()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
987
+ j,
986
988
  {
987
- block: f,
989
+ block: d,
988
990
  registeredComponents: e.registeredComponents,
989
991
  linkComponent: e.linkComponent,
990
992
  context: e.context
991
993
  },
992
- f.id
994
+ d.id
993
995
  ))
994
996
  ]
995
997
  }
996
998
  ) })
997
999
  ] }) : null });
998
1000
  }
999
- function Mt(e) {
1000
- const t = O(null);
1001
+ function jt(e) {
1002
+ const t = D(null);
1001
1003
  function n() {
1002
1004
  var r;
1003
1005
  return [
@@ -1013,8 +1015,8 @@ function Mt(e) {
1013
1015
  return e.path.startsWith(r) ? e.path : `${r}${e.path || ""}`;
1014
1016
  }
1015
1017
  function o() {
1016
- var r, s;
1017
- W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
1018
+ var r, l;
1019
+ W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1018
1020
  {
1019
1021
  type: "builder.clickEmptyBlocks",
1020
1022
  data: {
@@ -1026,8 +1028,8 @@ function Mt(e) {
1026
1028
  ));
1027
1029
  }
1028
1030
  function a() {
1029
- var r, s;
1030
- W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
1031
+ var r, l;
1032
+ W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1031
1033
  {
1032
1034
  type: "builder.hoverEmptyBlocks",
1033
1035
  data: {
@@ -1039,12 +1041,12 @@ function Mt(e) {
1039
1041
  ));
1040
1042
  }
1041
1043
  return A(() => {
1042
- }, []), /* @__PURE__ */ N(T, { children: [
1043
- /* @__PURE__ */ l(
1044
+ }, []), /* @__PURE__ */ N(P, { children: [
1045
+ /* @__PURE__ */ s(
1044
1046
  e.BlocksWrapper,
1045
1047
  {
1046
1048
  ref: t,
1047
- className: n() + " props-blocks-wrapper-215a41e0",
1049
+ className: n() + " props-blocks-wrapper-2c6a6d88",
1048
1050
  "builder-path": i(),
1049
1051
  "builder-parent-id": e.parent,
1050
1052
  style: e.styleProp,
@@ -1055,18 +1057,18 @@ function Mt(e) {
1055
1057
  children: e.children
1056
1058
  }
1057
1059
  ),
1058
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-215a41e0 {
1060
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2c6a6d88 {
1059
1061
  display: flex;
1060
1062
  flex-direction: column;
1061
1063
  align-items: stretch;
1062
1064
  }` })
1063
1065
  ] });
1064
1066
  }
1065
- function F(e) {
1067
+ function $(e) {
1066
1068
  var i, o, a;
1067
- const t = fe(le), n = fe(Pe);
1068
- return /* @__PURE__ */ l(
1069
- Mt,
1069
+ const t = he(le), n = he(Ve);
1070
+ return /* @__PURE__ */ s(
1071
+ jt,
1070
1072
  {
1071
1073
  blocks: e.blocks,
1072
1074
  parent: e.parent,
@@ -1075,8 +1077,8 @@ function F(e) {
1075
1077
  classNameProp: e.className,
1076
1078
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1077
1079
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1078
- children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
1079
- M,
1080
+ children: e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
1081
+ j,
1080
1082
  {
1081
1083
  block: r,
1082
1084
  linkComponent: e.linkComponent,
@@ -1088,9 +1090,9 @@ function F(e) {
1088
1090
  }
1089
1091
  );
1090
1092
  }
1091
- const jt = (e) => `builder-columns ${e}-breakpoints`;
1092
- function qt(e) {
1093
- var v, x;
1093
+ const zt = (e) => `builder-columns ${e}-breakpoints`;
1094
+ function Kt(e) {
1095
+ var g, v;
1094
1096
  function t() {
1095
1097
  return typeof e.space == "number" ? e.space || 0 : 20;
1096
1098
  }
@@ -1100,28 +1102,28 @@ function qt(e) {
1100
1102
  function i() {
1101
1103
  return e.stackColumnsAt || "tablet";
1102
1104
  }
1103
- function o(b) {
1104
- return b.link ? e.builderLinkComponent || "a" : "div";
1105
+ function o(y) {
1106
+ return y.link ? e.builderLinkComponent || "a" : "div";
1105
1107
  }
1106
- function a(b) {
1107
- var p;
1108
- return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
1108
+ function a(y) {
1109
+ var x;
1110
+ return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1109
1111
  }
1110
- function r(b) {
1111
- const p = a(b), C = t() * (n().length - 1) * (p / 100);
1112
- return `calc(${p}% - ${C}px)`;
1112
+ function r(y) {
1113
+ const x = a(y), I = t() * (n().length - 1) * (x / 100);
1114
+ return `calc(${x}% - ${I}px)`;
1113
1115
  }
1114
- function s({
1115
- stackedStyle: b,
1116
- desktopStyle: p
1116
+ function l({
1117
+ stackedStyle: y,
1118
+ desktopStyle: x
1117
1119
  }) {
1118
- return i() === "tablet" ? b : p;
1120
+ return i() === "tablet" ? y : x;
1119
1121
  }
1120
- function d({
1121
- stackedStyle: b,
1122
- desktopStyle: p
1122
+ function u({
1123
+ stackedStyle: y,
1124
+ desktopStyle: x
1123
1125
  }) {
1124
- return i() === "never" ? p : b;
1126
+ return i() === "never" ? x : y;
1125
1127
  }
1126
1128
  function c() {
1127
1129
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1129,108 +1131,108 @@ function qt(e) {
1129
1131
  function h() {
1130
1132
  return {
1131
1133
  "--flex-dir": c(),
1132
- "--flex-dir-tablet": s({
1134
+ "--flex-dir-tablet": l({
1133
1135
  stackedStyle: c(),
1134
1136
  desktopStyle: "row"
1135
1137
  })
1136
1138
  };
1137
1139
  }
1138
- function g(b) {
1139
- const p = b === 0 ? 0 : t(), C = r(b), V = `${p}px`, k = "100%", I = 0;
1140
+ function b(y) {
1141
+ const x = y === 0 ? 0 : t(), I = r(y), B = `${x}px`, C = "100%", S = 0;
1140
1142
  return {
1141
1143
  ...{
1142
1144
  display: "flex",
1143
1145
  flexDirection: "column",
1144
1146
  alignItems: "stretch"
1145
1147
  },
1146
- width: C,
1147
- ["marginLeft"]: V,
1148
- "--column-width-mobile": d({
1149
- stackedStyle: k,
1150
- desktopStyle: C
1148
+ width: I,
1149
+ ["marginLeft"]: B,
1150
+ "--column-width-mobile": u({
1151
+ stackedStyle: C,
1152
+ desktopStyle: I
1151
1153
  }),
1152
- "--column-margin-left-mobile": d({
1153
- stackedStyle: I,
1154
- desktopStyle: V
1154
+ "--column-margin-left-mobile": u({
1155
+ stackedStyle: S,
1156
+ desktopStyle: B
1155
1157
  }),
1156
- "--column-width-tablet": s({
1157
- stackedStyle: k,
1158
- desktopStyle: C
1158
+ "--column-width-tablet": l({
1159
+ stackedStyle: C,
1160
+ desktopStyle: I
1159
1161
  }),
1160
- "--column-margin-left-tablet": s({
1161
- stackedStyle: I,
1162
- desktopStyle: V
1162
+ "--column-margin-left-tablet": l({
1163
+ stackedStyle: S,
1164
+ desktopStyle: B
1163
1165
  })
1164
1166
  };
1165
1167
  }
1166
- function m(b) {
1167
- var C, V;
1168
- return _e(
1169
- ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1170
- )[b].max;
1168
+ function f(y) {
1169
+ var I, B;
1170
+ return qe(
1171
+ ((B = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints) || {}
1172
+ )[y].max;
1171
1173
  }
1172
- function y() {
1173
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1174
+ function p() {
1175
+ const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1174
1176
  return `
1175
- @media (max-width: ${m("medium")}px) {
1177
+ @media (max-width: ${f("medium")}px) {
1176
1178
  .${e.builderBlock.id}-breakpoints {
1177
1179
  flex-direction: var(--flex-dir-tablet);
1178
1180
  align-items: stretch;
1179
1181
  }
1180
1182
 
1181
- ${b} {
1183
+ ${y} {
1182
1184
  width: var(--column-width-tablet) !important;
1183
1185
  margin-left: var(--column-margin-left-tablet) !important;
1184
1186
  }
1185
1187
  }
1186
1188
 
1187
- @media (max-width: ${m("small")}px) {
1189
+ @media (max-width: ${f("small")}px) {
1188
1190
  .${e.builderBlock.id}-breakpoints {
1189
1191
  flex-direction: var(--flex-dir);
1190
1192
  align-items: stretch;
1191
1193
  }
1192
1194
 
1193
- ${b} {
1195
+ ${y} {
1194
1196
  width: var(--column-width-mobile) !important;
1195
1197
  margin-left: var(--column-margin-left-mobile) !important;
1196
1198
  }
1197
1199
  },
1198
1200
  `;
1199
1201
  }
1200
- function f(b, p) {
1202
+ function d(y, x) {
1201
1203
  return {
1202
- ...b.link ? {
1203
- href: b.link
1204
+ ...y.link ? {
1205
+ href: y.link
1204
1206
  } : {},
1205
1207
  [H()]: "builder-column",
1206
- style: Oe(g(p))
1208
+ style: Le(b(x))
1207
1209
  };
1208
1210
  }
1209
- return /* @__PURE__ */ N(T, { children: [
1211
+ return /* @__PURE__ */ N(P, { children: [
1210
1212
  /* @__PURE__ */ N(
1211
1213
  "div",
1212
1214
  {
1213
- className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
1215
+ className: zt((g = e.builderBlock) == null ? void 0 : g.id) + " div-d55bdf5c",
1214
1216
  style: h(),
1215
1217
  children: [
1216
- /* @__PURE__ */ l(
1217
- Q,
1218
+ /* @__PURE__ */ s(
1219
+ M,
1218
1220
  {
1219
1221
  id: "builderio-columns",
1220
- styles: y(),
1222
+ styles: p(),
1221
1223
  nonce: e.builderContext.nonce
1222
1224
  }
1223
1225
  ),
1224
- (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
1226
+ (v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
1225
1227
  re,
1226
1228
  {
1227
- TagName: o(b),
1229
+ TagName: o(y),
1228
1230
  actionAttributes: {},
1229
- attributes: f(b, p),
1230
- children: /* @__PURE__ */ l(
1231
- F,
1231
+ attributes: d(y, x),
1232
+ children: /* @__PURE__ */ s(
1233
+ $,
1232
1234
  {
1233
- path: `columns.${p}.blocks`,
1235
+ path: `columns.${x}.blocks`,
1234
1236
  parent: e.builderBlock.id,
1235
1237
  styleProp: {
1236
1238
  flexGrow: "1"
@@ -1238,70 +1240,70 @@ function qt(e) {
1238
1240
  context: e.builderContext,
1239
1241
  registeredComponents: e.builderComponents,
1240
1242
  linkComponent: e.builderLinkComponent,
1241
- blocks: b.blocks
1243
+ blocks: y.blocks
1242
1244
  }
1243
1245
  )
1244
1246
  },
1245
- p
1247
+ x
1246
1248
  ))
1247
1249
  ]
1248
1250
  }
1249
1251
  ),
1250
- /* @__PURE__ */ l("style", { children: `.div-49f40bae {
1252
+ /* @__PURE__ */ s("style", { children: `.div-d55bdf5c {
1251
1253
  display: flex;
1252
1254
  line-height: normal;
1253
1255
  }` })
1254
1256
  ] });
1255
1257
  }
1256
- function zt(e) {
1257
- return /* @__PURE__ */ l("span", { children: e.children });
1258
+ function Jt(e) {
1259
+ return /* @__PURE__ */ s("span", { children: e.children });
1258
1260
  }
1259
- function ye(e) {
1261
+ function ve(e) {
1260
1262
  return e.replace(/http(s)?:/, "");
1261
1263
  }
1262
- function Kt(e = "", t, n) {
1264
+ function Gt(e = "", t, n) {
1263
1265
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1264
1266
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1265
1267
  }
1266
- function Jt(e, t) {
1268
+ function Qt(e, t) {
1267
1269
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1268
1270
  return e;
1269
1271
  if (t === "master")
1270
- return ye(e);
1272
+ return ve(e);
1271
1273
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1272
1274
  if (n) {
1273
1275
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1274
- return ye(`${i[0]}_${a}${o}`);
1276
+ return ve(`${i[0]}_${a}${o}`);
1275
1277
  }
1276
1278
  return null;
1277
1279
  }
1278
- function X(e) {
1280
+ function ee(e) {
1279
1281
  if (!e)
1280
1282
  return e;
1281
1283
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1282
1284
  if (e.match(/builder\.io/)) {
1283
1285
  let n = e;
1284
1286
  const i = Number(e.split("?width=")[1]);
1285
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1287
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Gt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1286
1288
  }
1287
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1289
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1288
1290
  }
1289
- function Gt(e) {
1290
- var o, a, r, s, d, c;
1291
+ function Yt(e) {
1292
+ var o, a, r, l, u, c;
1291
1293
  function t() {
1292
- var m;
1293
- const g = e.image || e.src;
1294
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1294
+ var f;
1295
+ const b = e.image || e.src;
1296
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1295
1297
  // images, otherwise you can supply this prop manually
1296
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1298
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1297
1299
  return e.srcset;
1298
1300
  if (!e.noWebp) {
1299
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1301
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1300
1302
  if (!e.srcset.includes(e.image.split("?")[0]))
1301
- return console.debug("Removed given srcset"), X(g);
1303
+ return console.debug("Removed given srcset"), ee(b);
1302
1304
  } else if (e.image && !e.srcset)
1303
- return X(g);
1304
- return X(g);
1305
+ return ee(b);
1306
+ return ee(b);
1305
1307
  }
1306
1308
  }
1307
1309
  function n() {
@@ -1319,11 +1321,11 @@ function Gt(e) {
1319
1321
  return e.aspectRatio ? h : void 0;
1320
1322
  }
1321
1323
  return A(() => {
1322
- }, []), /* @__PURE__ */ N(T, { children: [
1323
- /* @__PURE__ */ N(T, { children: [
1324
+ }, []), /* @__PURE__ */ N(P, { children: [
1325
+ /* @__PURE__ */ N(P, { children: [
1324
1326
  /* @__PURE__ */ N("picture", { children: [
1325
- n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1326
- /* @__PURE__ */ l(
1327
+ n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1328
+ /* @__PURE__ */ s(
1327
1329
  "img",
1328
1330
  {
1329
1331
  loading: e.highPriority ? "eager" : "lazy",
@@ -1335,33 +1337,33 @@ function Gt(e) {
1335
1337
  objectFit: e.backgroundSize || "cover",
1336
1338
  ...i()
1337
1339
  },
1338
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
1340
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
1339
1341
  src: e.image,
1340
1342
  srcSet: t(),
1341
1343
  sizes: e.sizes
1342
1344
  }
1343
1345
  )
1344
1346
  ] }),
1345
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1347
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1346
1348
  "div",
1347
1349
  {
1348
- className: "builder-image-sizer div-c071ff08",
1350
+ className: "builder-image-sizer div-11a47ef4",
1349
1351
  style: {
1350
1352
  paddingTop: e.aspectRatio * 100 + "%"
1351
1353
  }
1352
1354
  }
1353
1355
  ) : null,
1354
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1355
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-c071ff08-2", children: e.children }) : null
1356
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1357
+ !e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-11a47ef4-2", children: e.children }) : null
1356
1358
  ] }),
1357
- /* @__PURE__ */ l("style", { children: `.img-c071ff08 {
1359
+ /* @__PURE__ */ s("style", { children: `.img-11a47ef4 {
1358
1360
  opacity: 1;
1359
1361
  transition: opacity 0.2s ease-in-out;
1360
- }.div-c071ff08 {
1362
+ }.div-11a47ef4 {
1361
1363
  width: 100%;
1362
1364
  pointer-events: none;
1363
1365
  font-size: 0;
1364
- }.div-c071ff08-2 {
1366
+ }.div-11a47ef4-2 {
1365
1367
  display: flex;
1366
1368
  flex-direction: column;
1367
1369
  align-items: stretch;
@@ -1373,8 +1375,8 @@ function Gt(e) {
1373
1375
  }` })
1374
1376
  ] });
1375
1377
  }
1376
- function Yt(e) {
1377
- return /* @__PURE__ */ l(
1378
+ function Xt(e) {
1379
+ return /* @__PURE__ */ s(
1378
1380
  "section",
1379
1381
  {
1380
1382
  ...e.attributes,
@@ -1394,7 +1396,7 @@ function Yt(e) {
1394
1396
  }
1395
1397
  );
1396
1398
  }
1397
- const Z = {
1399
+ const te = {
1398
1400
  "@type": "@builder.io/sdk:Element",
1399
1401
  layerName: "Accordion item title",
1400
1402
  responsiveStyles: {
@@ -1423,7 +1425,7 @@ const Z = {
1423
1425
  }
1424
1426
  }
1425
1427
  }]
1426
- }, ee = {
1428
+ }, ne = {
1427
1429
  "@type": "@builder.io/sdk:Element",
1428
1430
  layerName: "Accordion item detail",
1429
1431
  responsiveStyles: {
@@ -1454,7 +1456,7 @@ const Z = {
1454
1456
  }
1455
1457
  }
1456
1458
  }]
1457
- }, Qt = {
1459
+ }, Zt = {
1458
1460
  name: "Builder:Accordion",
1459
1461
  canHaveChildren: !0,
1460
1462
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1471,19 +1473,19 @@ const Z = {
1471
1473
  name: "title",
1472
1474
  type: "uiBlocks",
1473
1475
  hideFromUI: !0,
1474
- defaultValue: [Z]
1476
+ defaultValue: [te]
1475
1477
  }, {
1476
1478
  name: "detail",
1477
1479
  type: "uiBlocks",
1478
1480
  hideFromUI: !0,
1479
- defaultValue: [ee]
1481
+ defaultValue: [ne]
1480
1482
  }],
1481
1483
  defaultValue: [{
1482
- title: [Z],
1483
- detail: [ee]
1484
+ title: [te],
1485
+ detail: [ne]
1484
1486
  }, {
1485
- title: [Z],
1486
- detail: [ee]
1487
+ title: [te],
1488
+ detail: [ne]
1487
1489
  }],
1488
1490
  showIf: (e) => !e.get("useChildrenForItems")
1489
1491
  }, {
@@ -1519,9 +1521,9 @@ const Z = {
1519
1521
  builderLinkComponent: !0
1520
1522
  }
1521
1523
  }, xe = (e) => e.toString();
1522
- function Xt(e) {
1523
- var g;
1524
- const [t, n] = E(() => []);
1524
+ function en(e) {
1525
+ var b;
1526
+ const [t, n] = R(() => []);
1525
1527
  function i() {
1526
1528
  return !!(e.grid || e.oneAtATime);
1527
1529
  }
@@ -1538,7 +1540,7 @@ function Xt(e) {
1538
1540
  };
1539
1541
  }
1540
1542
  function a() {
1541
- const y = {
1543
+ const p = {
1542
1544
  ...{
1543
1545
  display: "flex",
1544
1546
  flexDirection: "column"
@@ -1547,75 +1549,75 @@ function Xt(e) {
1547
1549
  cursor: "pointer"
1548
1550
  };
1549
1551
  return Object.fromEntries(
1550
- Object.entries(y).filter(([f, v]) => v !== void 0)
1552
+ Object.entries(p).filter(([d, g]) => g !== void 0)
1551
1553
  );
1552
1554
  }
1553
- function r(m) {
1554
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1555
+ function r(f) {
1556
+ return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
1555
1557
  }
1556
- function s(m) {
1557
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1558
+ function l(f) {
1559
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
1558
1560
  }
1559
- function d() {
1560
- let m = null;
1561
+ function u() {
1562
+ let f = null;
1561
1563
  if (e.grid && t.length && document) {
1562
- const f = t[0];
1563
- let x = document.querySelector(
1564
- `.builder-accordion-title[data-index="${f}"]`
1564
+ const d = t[0];
1565
+ let v = document.querySelector(
1566
+ `.builder-accordion-title[data-index="${d}"]`
1565
1567
  );
1566
- if (m = f, x) {
1567
- let b = x.getBoundingClientRect();
1568
- for (; x = x && x.nextElementSibling; )
1569
- if (x) {
1570
- if (x.classList.contains("builder-accordion-detail"))
1568
+ if (f = d, v) {
1569
+ let y = v.getBoundingClientRect();
1570
+ for (; v = v && v.nextElementSibling; )
1571
+ if (v) {
1572
+ if (v.classList.contains("builder-accordion-detail"))
1571
1573
  continue;
1572
- const p = x.getBoundingClientRect();
1573
- if (p.left > b.left) {
1574
- const C = parseInt(
1575
- x.getAttribute("data-index") || "",
1574
+ const x = v.getBoundingClientRect();
1575
+ if (x.left > y.left) {
1576
+ const I = parseInt(
1577
+ v.getAttribute("data-index") || "",
1576
1578
  10
1577
1579
  );
1578
- isNaN(C) || (b = p, m = C);
1580
+ isNaN(I) || (y = x, f = I);
1579
1581
  } else
1580
1582
  break;
1581
1583
  }
1582
1584
  }
1583
1585
  }
1584
- return typeof m == "number" && (m = m + 1), m;
1586
+ return typeof f == "number" && (f = f + 1), f;
1585
1587
  }
1586
1588
  function c() {
1587
- const m = {
1588
- order: typeof d() == "number" ? d() : void 0,
1589
+ const f = {
1590
+ order: typeof u() == "number" ? u() : void 0,
1589
1591
  ...e.grid && {
1590
1592
  width: "100%"
1591
1593
  }
1592
1594
  };
1593
1595
  return Object.fromEntries(
1594
- Object.entries(m).filter(([y, f]) => f !== void 0)
1596
+ Object.entries(f).filter(([p, d]) => d !== void 0)
1595
1597
  );
1596
1598
  }
1597
- function h(m) {
1598
- t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
1599
+ function h(f) {
1600
+ t.includes(f) ? n(i() ? [] : t.filter((p) => p !== f)) : n(i() ? [f] : t.concat(f));
1599
1601
  }
1600
- return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ N(T, { children: [
1601
- /* @__PURE__ */ l(
1602
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((f, p) => /* @__PURE__ */ N(Ze.Fragment, { children: [
1603
+ /* @__PURE__ */ s(
1602
1604
  "div",
1603
1605
  {
1604
- className: r(y),
1606
+ className: r(p),
1605
1607
  style: {
1606
1608
  ...a(),
1607
1609
  ...e.grid && {
1608
1610
  width: e.gridRowWidth,
1609
- order: d() !== null ? xe(y) : xe(y + 1)
1611
+ order: u() !== null ? xe(p) : xe(p + 1)
1610
1612
  }
1611
1613
  },
1612
- "data-index": y,
1613
- onClick: (f) => h(y),
1614
- children: /* @__PURE__ */ l(
1615
- F,
1614
+ "data-index": p,
1615
+ onClick: (d) => h(p),
1616
+ children: /* @__PURE__ */ s(
1617
+ $,
1616
1618
  {
1617
- blocks: m.title,
1618
- path: `items.${y}.title`,
1619
+ blocks: f.title,
1620
+ path: `items.${p}.title`,
1619
1621
  parent: e.builderBlock.id,
1620
1622
  context: e.builderContext,
1621
1623
  registeredComponents: e.builderComponents,
@@ -1624,16 +1626,16 @@ function Xt(e) {
1624
1626
  )
1625
1627
  }
1626
1628
  ),
1627
- t.includes(y) ? /* @__PURE__ */ l(
1629
+ t.includes(p) ? /* @__PURE__ */ s(
1628
1630
  "div",
1629
1631
  {
1630
- className: s(y),
1632
+ className: l(p),
1631
1633
  style: c(),
1632
- children: /* @__PURE__ */ l(
1633
- F,
1634
+ children: /* @__PURE__ */ s(
1635
+ $,
1634
1636
  {
1635
- blocks: m.detail,
1636
- path: `items.${y}.detail`,
1637
+ blocks: f.detail,
1638
+ path: `items.${p}.detail`,
1637
1639
  parent: e.builderBlock.id,
1638
1640
  context: e.builderContext,
1639
1641
  registeredComponents: e.builderComponents,
@@ -1642,9 +1644,9 @@ function Xt(e) {
1642
1644
  )
1643
1645
  }
1644
1646
  ) : null
1645
- ] })) });
1647
+ ] }, p)) });
1646
1648
  }
1647
- const Zt = {
1649
+ const tn = {
1648
1650
  name: "Core:Button",
1649
1651
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1650
1652
  defaultStyles: {
@@ -1680,7 +1682,7 @@ const Zt = {
1680
1682
  shouldReceiveBuilderProps: {
1681
1683
  builderLinkComponent: !0
1682
1684
  }
1683
- }, en = {
1685
+ }, nn = {
1684
1686
  // TODO: ways to statically preprocess JSON for references, functions, etc
1685
1687
  name: "Columns",
1686
1688
  isRSC: !0,
@@ -1859,7 +1861,7 @@ const Zt = {
1859
1861
  });
1860
1862
  }
1861
1863
  const n = e.get("columns");
1862
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1864
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
1863
1865
  }
1864
1866
  }, {
1865
1867
  name: "space",
@@ -1887,13 +1889,13 @@ const Zt = {
1887
1889
  builderComponents: !0,
1888
1890
  builderLinkComponent: !0
1889
1891
  }
1890
- }, tn = {
1892
+ }, on = {
1891
1893
  name: "Fragment",
1892
1894
  static: !0,
1893
1895
  hidden: !0,
1894
1896
  canHaveChildren: !0,
1895
1897
  noWrap: !0
1896
- }, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], nn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
1898
+ }, ue = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], an = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], rn = {
1897
1899
  name: "Image",
1898
1900
  static: !0,
1899
1901
  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",
@@ -1908,22 +1910,22 @@ const Zt = {
1908
1910
  name: "image",
1909
1911
  type: "file",
1910
1912
  bubble: !0,
1911
- allowedFileTypes: de,
1913
+ allowedFileTypes: ue,
1912
1914
  required: !0,
1913
1915
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1914
1916
  onChange: (e) => {
1915
1917
  e.delete("srcset"), e.delete("noWebp");
1916
- function n(r, s = 6e4) {
1917
- return new Promise((d, c) => {
1918
+ function n(r, l = 6e4) {
1919
+ return new Promise((u, c) => {
1918
1920
  const h = document.createElement("img");
1919
- let g = !1;
1921
+ let b = !1;
1920
1922
  h.onload = () => {
1921
- g = !0, d(h);
1922
- }, h.addEventListener("error", (m) => {
1923
- console.warn("Image load failed", m.error), c(m.error);
1923
+ b = !0, u(h);
1924
+ }, h.addEventListener("error", (f) => {
1925
+ console.warn("Image load failed", f.error), c(f.error);
1924
1926
  }), h.src = r, setTimeout(() => {
1925
- g || c(new Error("Image load timed out"));
1926
- }, s);
1927
+ b || c(new Error("Image load timed out"));
1928
+ }, l);
1927
1929
  });
1928
1930
  }
1929
1931
  function i(r) {
@@ -1934,8 +1936,8 @@ const Zt = {
1934
1936
  r.type.includes("svg") && e.set("noWebp", !0);
1935
1937
  }), o && (!a || a === 0.7041))
1936
1938
  return n(o).then((r) => {
1937
- const s = e.get("aspectRatio");
1938
- e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1939
+ const l = e.get("aspectRatio");
1940
+ e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1939
1941
  });
1940
1942
  }
1941
1943
  }, {
@@ -2001,7 +2003,421 @@ const Zt = {
2001
2003
  shouldReceiveBuilderProps: {
2002
2004
  builderBlock: !0
2003
2005
  }
2004
- }, an = {
2006
+ }, ln = {
2007
+ name: "PersonalizationContainer",
2008
+ shouldReceiveBuilderProps: {
2009
+ builderBlock: !0,
2010
+ builderContext: !0
2011
+ },
2012
+ noWrap: !0,
2013
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
2014
+ canHaveChildren: !0,
2015
+ inputs: [{
2016
+ name: "variants",
2017
+ defaultValue: [],
2018
+ behavior: "personalizationVariantList",
2019
+ type: "list",
2020
+ subFields: [{
2021
+ name: "name",
2022
+ type: "text"
2023
+ }, {
2024
+ name: "query",
2025
+ friendlyName: "Targeting rules",
2026
+ type: "BuilderQuery",
2027
+ defaultValue: []
2028
+ }, {
2029
+ name: "startDate",
2030
+ type: "date"
2031
+ }, {
2032
+ name: "endDate",
2033
+ type: "date"
2034
+ }, {
2035
+ name: "blocks",
2036
+ type: "uiBlocks",
2037
+ hideFromUI: !0,
2038
+ defaultValue: []
2039
+ }]
2040
+ }]
2041
+ };
2042
+ function Q(e) {
2043
+ return /* @__PURE__ */ s(
2044
+ "script",
2045
+ {
2046
+ dangerouslySetInnerHTML: { __html: e.scriptStr },
2047
+ "data-id": e.id,
2048
+ nonce: e.nonce || ""
2049
+ }
2050
+ );
2051
+ }
2052
+ function sn(e, t, n, i) {
2053
+ function o(c) {
2054
+ return typeof c == "string";
2055
+ }
2056
+ function a(c) {
2057
+ return typeof c == "number";
2058
+ }
2059
+ function r(c, h) {
2060
+ return (() => {
2061
+ const f = h.property, p = h.operator;
2062
+ let d = h.value;
2063
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && p))
2064
+ return !0;
2065
+ if (Array.isArray(d))
2066
+ return p === "isNot" ? d.every((v) => r(c, {
2067
+ property: f,
2068
+ operator: p,
2069
+ value: v
2070
+ })) : !!d.find((v) => r(c, {
2071
+ property: f,
2072
+ operator: p,
2073
+ value: v
2074
+ }));
2075
+ const g = c[f];
2076
+ if (Array.isArray(g))
2077
+ return g.includes(d);
2078
+ switch (p) {
2079
+ case "is":
2080
+ return g === d;
2081
+ case "isNot":
2082
+ return g !== d;
2083
+ case "contains":
2084
+ return (o(g) || Array.isArray(g)) && g.includes(String(d));
2085
+ case "startsWith":
2086
+ return o(g) && g.startsWith(String(d));
2087
+ case "endsWith":
2088
+ return o(g) && g.endsWith(String(d));
2089
+ case "greaterThan":
2090
+ return a(g) && a(d) && g > d;
2091
+ case "lessThan":
2092
+ return a(g) && a(d) && g < d;
2093
+ case "greaterThanOrEqualTo":
2094
+ return a(g) && a(d) && g >= d;
2095
+ case "lessThanOrEqualTo":
2096
+ return a(g) && a(d) && g <= d;
2097
+ default:
2098
+ return !1;
2099
+ }
2100
+ })();
2101
+ }
2102
+ const l = {
2103
+ query: t,
2104
+ startDate: n,
2105
+ endDate: i
2106
+ }, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2107
+ return l.startDate && new Date(l.startDate) > u || l.endDate && new Date(l.endDate) < u ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
2108
+ }
2109
+ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
2110
+ if (!navigator.cookieEnabled) {
2111
+ return;
2112
+ }
2113
+ function getCookie(name) {
2114
+ const nameEQ = name + '=';
2115
+ const ca = document.cookie.split(';');
2116
+ for (let i = 0; i < ca.length; i++) {
2117
+ let c = ca[i];
2118
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2119
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2120
+ }
2121
+ return null;
2122
+ }
2123
+ function removeVariants() {
2124
+ variants?.forEach(function (_, index) {
2125
+ document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
2126
+ });
2127
+ document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
2128
+ document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
2129
+ }
2130
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2131
+ if (locale) {
2132
+ attributes.locale = locale;
2133
+ }
2134
+ const winningVariantIndex = variants?.findIndex(function (variant) {
2135
+ return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2136
+ });
2137
+ const isDebug = location.href.includes('builder.debug=true');
2138
+ if (isDebug) {
2139
+ console.debug('PersonalizationContainer', {
2140
+ attributes,
2141
+ variants,
2142
+ winningVariantIndex
2143
+ });
2144
+ }
2145
+ if (winningVariantIndex !== -1) {
2146
+ const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
2147
+ if (winningVariant) {
2148
+ const parentNode = winningVariant.parentNode;
2149
+ if (parentNode) {
2150
+ const newParent = parentNode.cloneNode(false);
2151
+ newParent.appendChild(winningVariant.content.firstChild);
2152
+ newParent.appendChild(winningVariant.content.lastChild);
2153
+ parentNode.parentNode?.replaceChild(newParent, parentNode);
2154
+ }
2155
+ if (isDebug) {
2156
+ console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
2157
+ }
2158
+ }
2159
+ } else if (variants && variants.length > 0) {
2160
+ removeVariants();
2161
+ }
2162
+ }`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2163
+ function isString(val) {
2164
+ return typeof val === 'string';
2165
+ }
2166
+ function isNumber(val) {
2167
+ return typeof val === 'number';
2168
+ }
2169
+ function objectMatchesQuery(userattr, query) {
2170
+ const result = (() => {
2171
+ const property = query.property;
2172
+ const operator = query.operator;
2173
+ let testValue = query.value;
2174
+ if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
2175
+ testValue = query.value.slice(0, -1);
2176
+ }
2177
+ if (!(property && operator)) {
2178
+ return true;
2179
+ }
2180
+ if (Array.isArray(testValue)) {
2181
+ if (operator === 'isNot') {
2182
+ return testValue.every(val => objectMatchesQuery(userattr, {
2183
+ property,
2184
+ operator,
2185
+ value: val
2186
+ }));
2187
+ }
2188
+ return !!testValue.find(val => objectMatchesQuery(userattr, {
2189
+ property,
2190
+ operator,
2191
+ value: val
2192
+ }));
2193
+ }
2194
+ const value = userattr[property];
2195
+ if (Array.isArray(value)) {
2196
+ return value.includes(testValue);
2197
+ }
2198
+ switch (operator) {
2199
+ case 'is':
2200
+ return value === testValue;
2201
+ case 'isNot':
2202
+ return value !== testValue;
2203
+ case 'contains':
2204
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
2205
+ case 'startsWith':
2206
+ return isString(value) && value.startsWith(String(testValue));
2207
+ case 'endsWith':
2208
+ return isString(value) && value.endsWith(String(testValue));
2209
+ case 'greaterThan':
2210
+ return isNumber(value) && isNumber(testValue) && value > testValue;
2211
+ case 'lessThan':
2212
+ return isNumber(value) && isNumber(testValue) && value < testValue;
2213
+ case 'greaterThanOrEqualTo':
2214
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
2215
+ case 'lessThanOrEqualTo':
2216
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
2217
+ default:
2218
+ return false;
2219
+ }
2220
+ })();
2221
+ return result;
2222
+ }
2223
+ const item = {
2224
+ query,
2225
+ startDate,
2226
+ endDate
2227
+ };
2228
+ const now = userAttributes.date && new Date(userAttributes.date) || new Date();
2229
+ if (item.startDate && new Date(item.startDate) > now) {
2230
+ return false;
2231
+ } else if (item.endDate && new Date(item.endDate) < now) {
2232
+ return false;
2233
+ }
2234
+ if (!item.query || !item.query.length) {
2235
+ return true;
2236
+ }
2237
+ return item.query.every(filter => {
2238
+ return objectMatchesQuery(userAttributes, filter);
2239
+ });
2240
+ }`;
2241
+ function dn(e, t) {
2242
+ return !(!(e && e.length > 0) || !t || L());
2243
+ }
2244
+ function mn(e) {
2245
+ const {
2246
+ variants: t,
2247
+ previewingIndex: n,
2248
+ isHydrated: i,
2249
+ filteredVariants: o,
2250
+ fallbackBlocks: a
2251
+ } = e;
2252
+ if (i && W() && typeof n == "number" && n < ((t == null ? void 0 : t.length) || 0) && !(o != null && o.length))
2253
+ return {
2254
+ blocks: t[n].blocks,
2255
+ path: `component.options.variants.${n}.blocks`
2256
+ };
2257
+ const l = o == null ? void 0 : o[0];
2258
+ return l ? {
2259
+ blocks: l.blocks,
2260
+ path: `component.options.variants.${t == null ? void 0 : t.indexOf(l)}.blocks`
2261
+ } : {
2262
+ blocks: a || [],
2263
+ path: void 0
2264
+ };
2265
+ }
2266
+ const fn = (e, t, n) => `
2267
+ (function() {
2268
+ ${un}
2269
+ ${cn}
2270
+ getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2271
+ })();
2272
+ `;
2273
+ function hn(e) {
2274
+ var g, v, y, x, I, B, C;
2275
+ const t = D(null), [n, i] = R(
2276
+ () => de.getUserAttributes()
2277
+ ), [o, a] = R(
2278
+ () => {
2279
+ var S, T, w;
2280
+ return fn(
2281
+ e.variants,
2282
+ ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2283
+ (w = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : w.locale
2284
+ );
2285
+ }
2286
+ ), [r, l] = R(() => []), [u, c] = R(
2287
+ () => {
2288
+ var S;
2289
+ return dn(
2290
+ e.variants,
2291
+ q((S = e.builderContext) == null ? void 0 : S.canTrack)
2292
+ );
2293
+ }
2294
+ ), [h, b] = R(() => !1);
2295
+ function f() {
2296
+ return (e.variants || []).filter((S) => {
2297
+ var T, w, m, k;
2298
+ return sn(
2299
+ {
2300
+ ...(w = (T = e.builderContext) == null ? void 0 : T.rootState) != null && w.locale ? {
2301
+ locale: (k = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : k.locale
2302
+ } : {},
2303
+ ...n
2304
+ },
2305
+ S.query,
2306
+ S.startDate,
2307
+ S.endDate
2308
+ );
2309
+ });
2310
+ }
2311
+ function p() {
2312
+ var S;
2313
+ return mn({
2314
+ variants: e.variants,
2315
+ fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2316
+ isHydrated: h,
2317
+ filteredVariants: f(),
2318
+ previewingIndex: e.previewingIndex
2319
+ });
2320
+ }
2321
+ function d() {
2322
+ return (e.variants || []).map(
2323
+ (S, T) => {
2324
+ var w;
2325
+ return `[data-variant-id="${(w = e.builderBlock) == null ? void 0 : w.id}-${T}"] { display: none; } `;
2326
+ }
2327
+ ).join("");
2328
+ }
2329
+ return A(() => {
2330
+ var T;
2331
+ b(!0);
2332
+ const S = de.subscribeOnUserAttributesChange(
2333
+ (w) => {
2334
+ i(w);
2335
+ }
2336
+ );
2337
+ if (!(W() || X())) {
2338
+ const w = f()[0];
2339
+ t.current && (t.current.dispatchEvent(
2340
+ new CustomEvent("builder.variantLoaded", {
2341
+ detail: {
2342
+ variant: w || "default",
2343
+ content: (T = e.builderContext) == null ? void 0 : T.content
2344
+ },
2345
+ bubbles: !0
2346
+ })
2347
+ ), new IntersectionObserver((k) => {
2348
+ k.forEach((V) => {
2349
+ var E;
2350
+ V.isIntersecting && t.current && t.current.dispatchEvent(
2351
+ new CustomEvent("builder.variantDisplayed", {
2352
+ detail: {
2353
+ variant: w || "default",
2354
+ content: (E = e.builderContext) == null ? void 0 : E.content
2355
+ },
2356
+ bubbles: !0
2357
+ })
2358
+ );
2359
+ });
2360
+ }).observe(t.current));
2361
+ }
2362
+ r.push(S);
2363
+ }, []), A(() => () => {
2364
+ r.forEach((S) => S());
2365
+ }, []), /* @__PURE__ */ N(
2366
+ "div",
2367
+ {
2368
+ ref: t,
2369
+ ...e.attributes,
2370
+ className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.class) || ""}`,
2371
+ children: [
2372
+ u ? /* @__PURE__ */ N(P, { children: [
2373
+ (v = e.variants) == null ? void 0 : v.map((S, T) => {
2374
+ var w, m;
2375
+ return /* @__PURE__ */ s(
2376
+ "template",
2377
+ {
2378
+ "data-variant-id": `${(w = e.builderBlock) == null ? void 0 : w.id}-${T}`,
2379
+ children: /* @__PURE__ */ s(
2380
+ $,
2381
+ {
2382
+ blocks: S.blocks,
2383
+ parent: (m = e.builderBlock) == null ? void 0 : m.id,
2384
+ path: `component.options.variants.${T}.blocks`
2385
+ }
2386
+ )
2387
+ },
2388
+ T
2389
+ );
2390
+ }),
2391
+ /* @__PURE__ */ s(
2392
+ M,
2393
+ {
2394
+ nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
2395
+ styles: d(),
2396
+ id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
2397
+ }
2398
+ ),
2399
+ /* @__PURE__ */ s(
2400
+ Q,
2401
+ {
2402
+ nonce: ((I = e.builderContext) == null ? void 0 : I.nonce) || "",
2403
+ scriptStr: o,
2404
+ id: `variants-script-${(B = e.builderBlock) == null ? void 0 : B.id}`
2405
+ }
2406
+ )
2407
+ ] }) : null,
2408
+ /* @__PURE__ */ s(
2409
+ $,
2410
+ {
2411
+ blocks: p().blocks,
2412
+ parent: (C = e.builderBlock) == null ? void 0 : C.id,
2413
+ path: p().path
2414
+ }
2415
+ )
2416
+ ]
2417
+ }
2418
+ );
2419
+ }
2420
+ const gn = {
2005
2421
  name: "Core:Section",
2006
2422
  static: !0,
2007
2423
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2040,7 +2456,7 @@ const Zt = {
2040
2456
  }
2041
2457
  }
2042
2458
  }]
2043
- }, rn = {
2459
+ }, bn = {
2044
2460
  name: "Slot",
2045
2461
  isRSC: !0,
2046
2462
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2058,9 +2474,9 @@ const Zt = {
2058
2474
  builderComponents: !0
2059
2475
  }
2060
2476
  };
2061
- function ln(e) {
2477
+ function pn(e) {
2062
2478
  var t, n, i;
2063
- return /* @__PURE__ */ l(
2479
+ return /* @__PURE__ */ s(
2064
2480
  "div",
2065
2481
  {
2066
2482
  style: {
@@ -2069,8 +2485,8 @@ function ln(e) {
2069
2485
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
2070
2486
  "builder-slot": e.name
2071
2487
  },
2072
- children: /* @__PURE__ */ l(
2073
- F,
2488
+ children: /* @__PURE__ */ s(
2489
+ $,
2074
2490
  {
2075
2491
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2076
2492
  path: `symbol.data.${e.name}`,
@@ -2082,7 +2498,7 @@ function ln(e) {
2082
2498
  }
2083
2499
  );
2084
2500
  }
2085
- const sn = {
2501
+ const yn = {
2086
2502
  name: "Symbol",
2087
2503
  noWrap: !0,
2088
2504
  static: !0,
@@ -2121,7 +2537,7 @@ const sn = {
2121
2537
  builderComponents: !0,
2122
2538
  builderLinkComponent: !0
2123
2539
  }
2124
- }, te = {
2540
+ }, ie = {
2125
2541
  "@type": "@builder.io/sdk:Element",
2126
2542
  responsiveStyles: {
2127
2543
  large: {
@@ -2143,7 +2559,7 @@ const sn = {
2143
2559
  text: "New tab"
2144
2560
  }
2145
2561
  }
2146
- }, ne = {
2562
+ }, oe = {
2147
2563
  "@type": "@builder.io/sdk:Element",
2148
2564
  responsiveStyles: {
2149
2565
  large: {
@@ -2159,7 +2575,7 @@ const sn = {
2159
2575
  text: "New tab content "
2160
2576
  }
2161
2577
  }
2162
- }, cn = {
2578
+ }, vn = {
2163
2579
  name: "Builder: Tabs",
2164
2580
  inputs: [{
2165
2581
  name: "tabs",
@@ -2169,16 +2585,16 @@ const sn = {
2169
2585
  name: "label",
2170
2586
  type: "uiBlocks",
2171
2587
  hideFromUI: !0,
2172
- defaultValue: [te]
2588
+ defaultValue: [ie]
2173
2589
  }, {
2174
2590
  name: "content",
2175
2591
  type: "uiBlocks",
2176
2592
  hideFromUI: !0,
2177
- defaultValue: [ne]
2593
+ defaultValue: [oe]
2178
2594
  }],
2179
2595
  defaultValue: [{
2180
2596
  label: [{
2181
- ...te,
2597
+ ...ie,
2182
2598
  component: {
2183
2599
  name: "Text",
2184
2600
  options: {
@@ -2187,7 +2603,7 @@ const sn = {
2187
2603
  }
2188
2604
  }],
2189
2605
  content: [{
2190
- ...ne,
2606
+ ...oe,
2191
2607
  component: {
2192
2608
  name: "Text",
2193
2609
  options: {
@@ -2197,7 +2613,7 @@ const sn = {
2197
2613
  }]
2198
2614
  }, {
2199
2615
  label: [{
2200
- ...te,
2616
+ ...ie,
2201
2617
  component: {
2202
2618
  name: "Text",
2203
2619
  options: {
@@ -2206,7 +2622,7 @@ const sn = {
2206
2622
  }
2207
2623
  }],
2208
2624
  content: [{
2209
- ...ne,
2625
+ ...oe,
2210
2626
  component: {
2211
2627
  name: "Text",
2212
2628
  options: {
@@ -2263,9 +2679,9 @@ const sn = {
2263
2679
  builderLinkComponent: !0
2264
2680
  }
2265
2681
  };
2266
- function dn(e) {
2682
+ function xn(e) {
2267
2683
  var a;
2268
- const [t, n] = E(
2684
+ const [t, n] = R(
2269
2685
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2270
2686
  );
2271
2687
  function i(r) {
@@ -2275,7 +2691,7 @@ function dn(e) {
2275
2691
  r === t && e.collapsible ? n(-1) : n(r);
2276
2692
  }
2277
2693
  return /* @__PURE__ */ N("div", { children: [
2278
- /* @__PURE__ */ l(
2694
+ /* @__PURE__ */ s(
2279
2695
  "div",
2280
2696
  {
2281
2697
  className: "builder-tabs-wrap",
@@ -2285,19 +2701,19 @@ function dn(e) {
2285
2701
  justifyContent: e.tabHeaderLayout || "flex-start",
2286
2702
  overflow: "auto"
2287
2703
  },
2288
- children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
2704
+ children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
2289
2705
  "span",
2290
2706
  {
2291
- className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2707
+ className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2292
2708
  style: {
2293
- ...t === s ? e.activeTabStyle : {}
2709
+ ...t === l ? e.activeTabStyle : {}
2294
2710
  },
2295
- onClick: (d) => o(s),
2296
- children: /* @__PURE__ */ l(
2297
- F,
2711
+ onClick: (u) => o(l),
2712
+ children: /* @__PURE__ */ s(
2713
+ $,
2298
2714
  {
2299
2715
  parent: e.builderBlock.id,
2300
- path: `tabs.${s}.label`,
2716
+ path: `tabs.${l}.label`,
2301
2717
  blocks: r.label,
2302
2718
  context: e.builderContext,
2303
2719
  registeredComponents: e.builderComponents,
@@ -2305,12 +2721,12 @@ function dn(e) {
2305
2721
  }
2306
2722
  )
2307
2723
  },
2308
- s
2724
+ l
2309
2725
  ))
2310
2726
  }
2311
2727
  ),
2312
- i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2313
- F,
2728
+ i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2729
+ $,
2314
2730
  {
2315
2731
  parent: e.builderBlock.id,
2316
2732
  path: `tabs.${t}.content`,
@@ -2322,7 +2738,7 @@ function dn(e) {
2322
2738
  ) }) : null
2323
2739
  ] });
2324
2740
  }
2325
- const un = {
2741
+ const Sn = {
2326
2742
  shouldReceiveBuilderProps: {
2327
2743
  builderBlock: !1,
2328
2744
  builderContext: !0
@@ -2345,9 +2761,9 @@ const un = {
2345
2761
  textAlign: "center"
2346
2762
  }
2347
2763
  };
2348
- function mn(e) {
2764
+ function kn(e) {
2349
2765
  var t;
2350
- return /* @__PURE__ */ l(
2766
+ return /* @__PURE__ */ s(
2351
2767
  "div",
2352
2768
  {
2353
2769
  className: "builder-text",
@@ -2358,7 +2774,7 @@ function mn(e) {
2358
2774
  }
2359
2775
  );
2360
2776
  }
2361
- const fn = {
2777
+ const Cn = {
2362
2778
  name: "Custom Code",
2363
2779
  static: !0,
2364
2780
  requiredPermissions: ["editCode"],
@@ -2381,15 +2797,15 @@ const fn = {
2381
2797
  advanced: !0
2382
2798
  }]
2383
2799
  };
2384
- function hn(e) {
2385
- const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []);
2800
+ function wn(e) {
2801
+ const t = D(null), [n, i] = R(() => []), [o, a] = R(() => []);
2386
2802
  return A(() => {
2387
- var s;
2388
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2803
+ var l;
2804
+ if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2389
2805
  return;
2390
2806
  const r = t.current.getElementsByTagName("script");
2391
- for (let d = 0; d < r.length; d++) {
2392
- const c = r[d];
2807
+ for (let u = 0; u < r.length; u++) {
2808
+ const c = r[u];
2393
2809
  if (c.src) {
2394
2810
  if (n.includes(c.src))
2395
2811
  continue;
@@ -2410,7 +2826,7 @@ function hn(e) {
2410
2826
  }
2411
2827
  }
2412
2828
  }
2413
- }, []), /* @__PURE__ */ l(
2829
+ }, []), /* @__PURE__ */ s(
2414
2830
  "div",
2415
2831
  {
2416
2832
  ref: t,
@@ -2419,7 +2835,7 @@ function hn(e) {
2419
2835
  }
2420
2836
  );
2421
2837
  }
2422
- const gn = {
2838
+ const Tn = {
2423
2839
  name: "Embed",
2424
2840
  static: !0,
2425
2841
  inputs: [{
@@ -2434,30 +2850,30 @@ const gn = {
2434
2850
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2435
2851
  hideFromUI: !0
2436
2852
  }]
2437
- }, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
2438
- function yn(e) {
2439
- const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, s] = E(() => !1);
2440
- function d() {
2853
+ }, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
2854
+ function Rn(e) {
2855
+ const t = D(null), [n, i] = R(() => []), [o, a] = R(() => []), [r, l] = R(() => !1);
2856
+ function u() {
2441
2857
  if (!t.current || !t.current.getElementsByTagName)
2442
2858
  return;
2443
2859
  const c = t.current.getElementsByTagName("script");
2444
2860
  for (let h = 0; h < c.length; h++) {
2445
- const g = c[h];
2446
- if (g.src && !n.includes(g.src)) {
2447
- n.push(g.src);
2448
- const m = document.createElement("script");
2449
- m.async = !0, m.src = g.src, document.head.appendChild(m);
2450
- } else if (pn(g) && !o.includes(g.innerText))
2861
+ const b = c[h];
2862
+ if (b.src && !n.includes(b.src)) {
2863
+ n.push(b.src);
2864
+ const f = document.createElement("script");
2865
+ f.async = !0, f.src = b.src, document.head.appendChild(f);
2866
+ } else if (En(b) && !o.includes(b.innerText))
2451
2867
  try {
2452
- o.push(g.innerText), new Function(g.innerText)();
2453
- } catch (m) {
2454
- console.warn("`Embed`: Error running script:", m);
2868
+ o.push(b.innerText), new Function(b.innerText)();
2869
+ } catch (f) {
2870
+ console.warn("`Embed`: Error running script:", f);
2455
2871
  }
2456
2872
  }
2457
2873
  }
2458
2874
  return A(() => {
2459
- t.current && !r && (s(!0), d());
2460
- }, [t.current, r]), /* @__PURE__ */ l(
2875
+ t.current && !r && (l(!0), u());
2876
+ }, [t.current, r]), /* @__PURE__ */ s(
2461
2877
  "div",
2462
2878
  {
2463
2879
  className: "builder-embed",
@@ -2466,7 +2882,7 @@ function yn(e) {
2466
2882
  }
2467
2883
  );
2468
2884
  }
2469
- const xn = {
2885
+ const Pn = {
2470
2886
  name: "Form:Form",
2471
2887
  // editableTags: ['builder-form-error']
2472
2888
  defaults: {
@@ -2703,117 +3119,117 @@ const xn = {
2703
3119
  builderComponents: !0,
2704
3120
  builderLinkComponent: !0
2705
3121
  }
2706
- }, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
3122
+ }, Vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
2707
3123
  const e = process.env.NODE_ENV || "production";
2708
- return vn.includes(e) ? e : "production";
3124
+ return Vn.includes(e) ? e : "production";
2709
3125
  };
2710
- function kn(e) {
2711
- var g, m;
2712
- const t = O(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, s] = E(() => "");
2713
- function d(y) {
2714
- var v, x;
2715
- const f = {
3126
+ function An(e) {
3127
+ var b, f;
3128
+ const t = D(null), [n, i] = R(() => "unsubmitted"), [o, a] = R(() => null), [r, l] = R(() => "");
3129
+ function u(p) {
3130
+ var g, v;
3131
+ const d = {
2716
3132
  ...e.builderContext.rootState,
2717
- ...y
3133
+ ...p
2718
3134
  };
2719
- e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
3135
+ e.builderContext.rootSetState ? (v = (g = e.builderContext).rootSetState) == null || v.call(g, d) : e.builderContext.rootState = d;
2720
3136
  }
2721
3137
  function c() {
2722
3138
  return W() && e.previewState || n;
2723
3139
  }
2724
- function h(y) {
2725
- var v;
2726
- const f = e.sendWithJs || e.sendSubmissionsTo === "email";
3140
+ function h(p) {
3141
+ var g;
3142
+ const d = e.sendWithJs || e.sendSubmissionsTo === "email";
2727
3143
  if (e.sendSubmissionsTo === "zapier")
2728
- y.preventDefault();
2729
- else if (f) {
3144
+ p.preventDefault();
3145
+ else if (d) {
2730
3146
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2731
- y.preventDefault();
3147
+ p.preventDefault();
2732
3148
  return;
2733
3149
  }
2734
- y.preventDefault();
2735
- const x = y.currentTarget || y.target, b = e.customHeaders || {};
2736
- let p;
2737
- const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2738
- let S;
2739
- const P = u.name;
2740
- if (u instanceof HTMLInputElement)
2741
- if (u.type === "radio") {
2742
- if (u.checked)
2743
- return S = u.name, {
2744
- key: P,
2745
- value: S
3150
+ p.preventDefault();
3151
+ const v = p.currentTarget || p.target, y = e.customHeaders || {};
3152
+ let x;
3153
+ const I = new FormData(v), B = Array.from(v.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3154
+ let k;
3155
+ const V = m.name;
3156
+ if (m instanceof HTMLInputElement)
3157
+ if (m.type === "radio") {
3158
+ if (m.checked)
3159
+ return k = m.name, {
3160
+ key: V,
3161
+ value: k
2746
3162
  };
2747
- } else if (u.type === "checkbox")
2748
- S = u.checked;
2749
- else if (u.type === "number" || u.type === "range") {
2750
- const w = u.valueAsNumber;
2751
- isNaN(w) || (S = w);
3163
+ } else if (m.type === "checkbox")
3164
+ k = m.checked;
3165
+ else if (m.type === "number" || m.type === "range") {
3166
+ const E = m.valueAsNumber;
3167
+ isNaN(E) || (k = E);
2752
3168
  } else
2753
- u.type === "file" ? S = u.files : S = u.value;
3169
+ m.type === "file" ? k = m.files : k = m.value;
2754
3170
  else
2755
- S = u.value;
3171
+ k = m.value;
2756
3172
  return {
2757
- key: P,
2758
- value: S
3173
+ key: V,
3174
+ value: k
2759
3175
  };
2760
3176
  });
2761
- let k = e.contentType;
2762
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
2763
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2764
- }), k !== "application/json")
2765
- p = C;
3177
+ let C = e.contentType;
3178
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(B).forEach(({ value: m }) => {
3179
+ (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3180
+ }), C !== "application/json")
3181
+ x = I;
2766
3182
  else {
2767
- const u = {};
2768
- Array.from(V).forEach(({ value: S, key: P }) => {
2769
- Ne(u, P, S);
2770
- }), p = JSON.stringify(u);
3183
+ const m = {};
3184
+ Array.from(B).forEach(({ value: k, key: V }) => {
3185
+ We(m, V, k);
3186
+ }), x = JSON.stringify(m);
2771
3187
  }
2772
- k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
2773
- const I = new CustomEvent("presubmit", { detail: { body: p } });
2774
- if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
3188
+ C && C !== "multipart/form-data" && (d && ((g = e.action) != null && g.includes("zapier.com")) || (y["content-type"] = C));
3189
+ const S = new CustomEvent("presubmit", { detail: { body: x } });
3190
+ if (t.current && (t.current.dispatchEvent(S), S.defaultPrevented))
2775
3191
  return;
2776
3192
  i("sending");
2777
- const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3193
+ const T = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2778
3194
  e.sendSubmissionsToEmail || ""
2779
- )}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
2780
- Ie(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
2781
- async (u) => {
2782
- let S;
2783
- const P = u.headers.get("content-type");
2784
- if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
2785
- let w = Be(S, e.errorMessagePath);
2786
- w && (typeof w != "string" && (w = JSON.stringify(w)), s(w), d({ formErrorMessage: w }));
3195
+ )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
3196
+ Ie(w), fetch(w, { body: x, headers: y, method: e.method || "post" }).then(
3197
+ async (m) => {
3198
+ let k;
3199
+ const V = m.headers.get("content-type");
3200
+ if (V && V.indexOf("application/json") !== -1 ? k = await m.json() : k = await m.text(), !m.ok && e.errorMessagePath) {
3201
+ let E = Be(k, e.errorMessagePath);
3202
+ E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), u({ formErrorMessage: E }));
2787
3203
  }
2788
- if (a(S), i(u.ok ? "success" : "error"), u.ok) {
2789
- const w = new CustomEvent("submit:success", {
2790
- detail: { res: u, body: S }
3204
+ if (a(k), i(m.ok ? "success" : "error"), m.ok) {
3205
+ const E = new CustomEvent("submit:success", {
3206
+ detail: { res: m, body: k }
2791
3207
  });
2792
3208
  if (t.current) {
2793
- if (t.current.dispatchEvent(w), w.defaultPrevented)
3209
+ if (t.current.dispatchEvent(E), E.defaultPrevented)
2794
3210
  return;
2795
3211
  e.resetFormOnSubmit !== !1 && t.current.reset();
2796
3212
  }
2797
3213
  if (e.successUrl)
2798
3214
  if (t.current) {
2799
- const L = new CustomEvent("route", {
3215
+ const O = new CustomEvent("route", {
2800
3216
  detail: { url: e.successUrl }
2801
3217
  });
2802
- t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
3218
+ t.current.dispatchEvent(O), O.defaultPrevented || (location.href = e.successUrl);
2803
3219
  } else
2804
3220
  location.href = e.successUrl;
2805
3221
  }
2806
3222
  },
2807
- (u) => {
2808
- const S = new CustomEvent("submit:error", {
2809
- detail: { error: u }
3223
+ (m) => {
3224
+ const k = new CustomEvent("submit:error", {
3225
+ detail: { error: m }
2810
3226
  });
2811
- t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(u), i("error"));
3227
+ t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (a(m), i("error"));
2812
3228
  }
2813
3229
  );
2814
3230
  }
2815
3231
  }
2816
- return /* @__PURE__ */ N(T, { children: [
3232
+ return /* @__PURE__ */ N(P, { children: [
2817
3233
  " ",
2818
3234
  /* @__PURE__ */ N(
2819
3235
  "form",
@@ -2823,38 +3239,38 @@ function kn(e) {
2823
3239
  action: !e.sendWithJs && e.action,
2824
3240
  method: e.method,
2825
3241
  name: e.name,
2826
- onSubmit: (y) => h(y),
3242
+ onSubmit: (p) => h(p),
2827
3243
  ...e.attributes,
2828
3244
  children: [
2829
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
2830
- M,
3245
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(P, { children: (f = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : f.map((p, d) => /* @__PURE__ */ s(
3246
+ j,
2831
3247
  {
2832
- block: y,
3248
+ block: p,
2833
3249
  context: e.builderContext,
2834
3250
  registeredComponents: e.builderComponents,
2835
3251
  linkComponent: e.builderLinkComponent
2836
3252
  },
2837
- `form-block-${f}`
3253
+ `form-block-${d}`
2838
3254
  )) }) : null,
2839
- c() === "error" ? /* @__PURE__ */ l(
2840
- F,
3255
+ c() === "error" ? /* @__PURE__ */ s(
3256
+ $,
2841
3257
  {
2842
3258
  path: "errorMessage",
2843
3259
  blocks: e.errorMessage,
2844
3260
  context: e.builderContext
2845
3261
  }
2846
3262
  ) : null,
2847
- c() === "sending" ? /* @__PURE__ */ l(
2848
- F,
3263
+ c() === "sending" ? /* @__PURE__ */ s(
3264
+ $,
2849
3265
  {
2850
3266
  path: "sendingMessage",
2851
3267
  blocks: e.sendingMessage,
2852
3268
  context: e.builderContext
2853
3269
  }
2854
3270
  ) : null,
2855
- c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2856
- c() === "success" ? /* @__PURE__ */ l(
2857
- F,
3271
+ c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
3272
+ c() === "success" ? /* @__PURE__ */ s(
3273
+ $,
2858
3274
  {
2859
3275
  path: "successMessage",
2860
3276
  blocks: e.successMessage,
@@ -2865,11 +3281,11 @@ function kn(e) {
2865
3281
  }
2866
3282
  ),
2867
3283
  " ",
2868
- /* @__PURE__ */ l("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
3284
+ /* @__PURE__ */ s("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
2869
3285
  " "
2870
3286
  ] });
2871
3287
  }
2872
- const Cn = {
3288
+ const Nn = {
2873
3289
  name: "Form:Input",
2874
3290
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2875
3291
  inputs: [
@@ -2921,8 +3337,8 @@ const Cn = {
2921
3337
  borderColor: "#ccc"
2922
3338
  }
2923
3339
  };
2924
- function Tn(e) {
2925
- return /* @__PURE__ */ Re(
3340
+ function Wn(e) {
3341
+ return /* @__PURE__ */ Pe(
2926
3342
  "input",
2927
3343
  {
2928
3344
  ...e.attributes,
@@ -2936,7 +3352,7 @@ function Tn(e) {
2936
3352
  }
2937
3353
  );
2938
3354
  }
2939
- const In = {
3355
+ const $n = {
2940
3356
  name: "Form:Select",
2941
3357
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2942
3358
  defaultStyles: {
@@ -2979,9 +3395,9 @@ const In = {
2979
3395
  static: !0,
2980
3396
  noWrap: !0
2981
3397
  };
2982
- function wn(e) {
3398
+ function Dn(e) {
2983
3399
  var t;
2984
- return /* @__PURE__ */ Re(
3400
+ return /* @__PURE__ */ Pe(
2985
3401
  "select",
2986
3402
  {
2987
3403
  ...e.attributes,
@@ -2991,10 +3407,10 @@ function wn(e) {
2991
3407
  name: e.name,
2992
3408
  required: e.required
2993
3409
  },
2994
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3410
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2995
3411
  );
2996
3412
  }
2997
- const En = {
3413
+ const Fn = {
2998
3414
  name: "Form:SubmitButton",
2999
3415
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3000
3416
  defaultStyles: {
@@ -3020,10 +3436,10 @@ const En = {
3020
3436
  // TODO: defaultChildren
3021
3437
  // canHaveChildren: true,
3022
3438
  };
3023
- function Rn(e) {
3024
- return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
3439
+ function On(e) {
3440
+ return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3025
3441
  }
3026
- const Pn = {
3442
+ const Ln = {
3027
3443
  name: "Form:TextArea",
3028
3444
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3029
3445
  inputs: [{
@@ -3060,8 +3476,8 @@ const Pn = {
3060
3476
  static: !0,
3061
3477
  noWrap: !0
3062
3478
  };
3063
- function Bn(e) {
3064
- return /* @__PURE__ */ l(
3479
+ function Un(e) {
3480
+ return /* @__PURE__ */ s(
3065
3481
  "textarea",
3066
3482
  {
3067
3483
  ...e.attributes,
@@ -3073,7 +3489,7 @@ function Bn(e) {
3073
3489
  }
3074
3490
  );
3075
3491
  }
3076
- const Vn = {
3492
+ const _n = {
3077
3493
  // friendlyName?
3078
3494
  name: "Raw:Img",
3079
3495
  hideFromInsertMenu: !0,
@@ -3082,14 +3498,14 @@ const Vn = {
3082
3498
  name: "image",
3083
3499
  bubble: !0,
3084
3500
  type: "file",
3085
- allowedFileTypes: de,
3501
+ allowedFileTypes: ue,
3086
3502
  required: !0
3087
3503
  }],
3088
3504
  noWrap: !0,
3089
3505
  static: !0
3090
3506
  };
3091
- function An(e) {
3092
- return /* @__PURE__ */ l(
3507
+ function qn(e) {
3508
+ return /* @__PURE__ */ s(
3093
3509
  "img",
3094
3510
  {
3095
3511
  style: {
@@ -3103,7 +3519,7 @@ function An(e) {
3103
3519
  W() && e.imgSrc || "default-key"
3104
3520
  );
3105
3521
  }
3106
- const Nn = {
3522
+ const Hn = {
3107
3523
  name: "Video",
3108
3524
  canHaveChildren: !0,
3109
3525
  defaultStyles: {
@@ -3114,14 +3530,14 @@ const Nn = {
3114
3530
  inputs: [{
3115
3531
  name: "video",
3116
3532
  type: "file",
3117
- allowedFileTypes: nn,
3533
+ allowedFileTypes: an,
3118
3534
  bubble: !0,
3119
3535
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3120
3536
  required: !0
3121
3537
  }, {
3122
3538
  name: "posterImage",
3123
3539
  type: "file",
3124
- allowedFileTypes: de,
3540
+ allowedFileTypes: ue,
3125
3541
  helperText: "Image to show before the video plays"
3126
3542
  }, {
3127
3543
  name: "autoPlay",
@@ -3188,8 +3604,8 @@ const Nn = {
3188
3604
  builderBlock: !0
3189
3605
  }
3190
3606
  };
3191
- function Wn(e) {
3192
- var i, o, a, r, s, d, c;
3607
+ function Mn(e) {
3608
+ var i, o, a, r, l, u, c;
3193
3609
  function t() {
3194
3610
  return {
3195
3611
  ...e.autoPlay === !0 ? {
@@ -3221,7 +3637,7 @@ function Wn(e) {
3221
3637
  position: "relative"
3222
3638
  },
3223
3639
  children: [
3224
- /* @__PURE__ */ l(
3640
+ /* @__PURE__ */ s(
3225
3641
  "video",
3226
3642
  {
3227
3643
  className: "builder-video",
@@ -3243,10 +3659,10 @@ function Wn(e) {
3243
3659
  },
3244
3660
  src: e.video || "no-src",
3245
3661
  poster: e.posterImage,
3246
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3662
+ children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3247
3663
  }
3248
3664
  ),
3249
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
3665
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
3250
3666
  "div",
3251
3667
  {
3252
3668
  style: {
@@ -3257,7 +3673,7 @@ function Wn(e) {
3257
3673
  }
3258
3674
  }
3259
3675
  ) : null,
3260
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3676
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3261
3677
  "div",
3262
3678
  {
3263
3679
  style: {
@@ -3268,7 +3684,7 @@ function Wn(e) {
3268
3684
  children: e.children
3269
3685
  }
3270
3686
  ) : null,
3271
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3687
+ (c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3272
3688
  "div",
3273
3689
  {
3274
3690
  style: {
@@ -3289,64 +3705,67 @@ function Wn(e) {
3289
3705
  }
3290
3706
  );
3291
3707
  }
3292
- const Fn = () => [{
3293
- component: hn,
3294
- ...fn
3295
- }, {
3296
- component: yn,
3297
- ...gn
3298
- }, {
3299
- component: kn,
3300
- ...xn
3301
- }, {
3302
- component: Tn,
3708
+ const jn = () => [{
3709
+ component: wn,
3303
3710
  ...Cn
3304
3711
  }, {
3305
3712
  component: Rn,
3306
- ...En
3307
- }, {
3308
- component: wn,
3309
- ...In
3310
- }, {
3311
- component: Bn,
3312
- ...Pn
3713
+ ...Tn
3313
3714
  }, {
3314
3715
  component: An,
3315
- ...Vn
3716
+ ...Pn
3316
3717
  }, {
3317
3718
  component: Wn,
3318
3719
  ...Nn
3319
- }], ve = () => [{
3320
- component: et,
3321
- ...Zt
3322
3720
  }, {
3323
- component: qt,
3324
- ...en
3721
+ component: On,
3722
+ ...Fn
3723
+ }, {
3724
+ component: Dn,
3725
+ ...$n
3726
+ }, {
3727
+ component: Un,
3728
+ ...Ln
3325
3729
  }, {
3326
- component: zt,
3730
+ component: qn,
3731
+ ..._n
3732
+ }, {
3733
+ component: Mn,
3734
+ ...Hn
3735
+ }], Se = () => [{
3736
+ component: nt,
3327
3737
  ...tn
3328
3738
  }, {
3329
- component: Gt,
3739
+ component: Kt,
3740
+ ...nn
3741
+ }, {
3742
+ component: Jt,
3330
3743
  ...on
3331
3744
  }, {
3332
3745
  component: Yt,
3333
- ...an
3334
- }, {
3335
- component: ln,
3336
3746
  ...rn
3337
3747
  }, {
3338
- component: ai,
3339
- ...sn
3748
+ component: Xt,
3749
+ ...gn
3340
3750
  }, {
3341
- component: mn,
3342
- ...un
3751
+ component: pn,
3752
+ ...bn
3343
3753
  }, {
3344
- component: dn,
3345
- ...cn
3754
+ component: gi,
3755
+ ...yn
3346
3756
  }, {
3347
- component: Xt,
3348
- ...Qt
3349
- }, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3757
+ component: kn,
3758
+ ...Sn
3759
+ }, {
3760
+ component: hn,
3761
+ ...ln
3762
+ }, {
3763
+ component: xn,
3764
+ ...vn
3765
+ }, {
3766
+ component: en,
3767
+ ...Zt
3768
+ }, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3350
3769
  function getAndSetVariantId() {
3351
3770
  function setCookie(name, value, days) {
3352
3771
  let expires = '';
@@ -3402,7 +3821,7 @@ const Fn = () => [{
3402
3821
  }).join('');
3403
3822
  styleEl.innerHTML = newStyleStr;
3404
3823
  }
3405
- }`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3824
+ }`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3406
3825
  if (!navigator.cookieEnabled) {
3407
3826
  return;
3408
3827
  }
@@ -3436,39 +3855,29 @@ const Fn = () => [{
3436
3855
  thisScriptEl?.remove();
3437
3856
  }
3438
3857
  return;
3439
- }`, Me = "builderIoAbTest", je = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3858
+ }`, Me = "builderIoAbTest", je = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3440
3859
  ...t,
3441
3860
  testVariationId: t.id,
3442
3861
  id: e == null ? void 0 : e.id
3443
- })), On = ({
3862
+ })), Jn = ({
3444
3863
  canTrack: e,
3445
3864
  content: t
3446
- }) => !(!(q(t).length > 0) || !e || D()), Dn = (e) => e === "react" || e === "reactNative", qe = Dn($), Un = () => `
3447
- window.${Me} = ${$n}
3448
- window.${je} = ${Ln}
3449
- `, _n = (e, t) => `
3865
+ }) => !(!(K(t).length > 0) || !e || L()), Gn = (e) => e === "react" || e === "reactNative", ze = Gn(F), Qn = () => `
3866
+ window.${Me} = ${zn}
3867
+ window.${je} = ${Kn}
3868
+ `, Yn = (e, t) => `
3450
3869
  window.${Me}(
3451
- "${t}",${JSON.stringify(e)}, ${qe}
3452
- )`, Hn = ({
3870
+ "${t}",${JSON.stringify(e)}, ${ze}
3871
+ )`, Xn = ({
3453
3872
  contentId: e,
3454
3873
  variationId: t
3455
3874
  }) => `window.${je}(
3456
- "${t}", "${e}", ${qe}
3875
+ "${t}", "${e}", ${ze}
3457
3876
  )`;
3458
- function oe(e) {
3459
- return /* @__PURE__ */ l(
3460
- "script",
3461
- {
3462
- dangerouslySetInnerHTML: { __html: e.scriptStr },
3463
- "data-id": e.id,
3464
- nonce: e.nonce || ""
3465
- }
3466
- );
3467
- }
3468
- function Se(e) {
3877
+ function ke(e) {
3469
3878
  return Math.round(e * 1e3) / 1e3;
3470
3879
  }
3471
- const Mn = (e, t, n = !0) => {
3880
+ const Zn = (e, t, n = !0) => {
3472
3881
  if (!(e instanceof HTMLElement))
3473
3882
  return null;
3474
3883
  let i = n ? e : e.parentElement;
@@ -3479,35 +3888,35 @@ const Mn = (e, t, n = !0) => {
3479
3888
  return i;
3480
3889
  } while (i = i.parentElement);
3481
3890
  return null;
3482
- }, jn = (e) => Mn(e, (t) => {
3891
+ }, ei = (e) => Zn(e, (t) => {
3483
3892
  const n = t.getAttribute("builder-id") || t.id;
3484
3893
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3485
- }), ke = ({
3894
+ }), Ce = ({
3486
3895
  event: e,
3487
3896
  target: t
3488
3897
  }) => {
3489
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
3898
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ke(i / n.width), r = ke(o / n.height);
3490
3899
  return {
3491
3900
  x: a,
3492
3901
  y: r
3493
3902
  };
3494
- }, qn = (e) => {
3495
- const t = e.target, n = t && jn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3903
+ }, ti = (e) => {
3904
+ const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3496
3905
  return {
3497
3906
  targetBuilderElement: i || void 0,
3498
3907
  metadata: {
3499
- targetOffset: t ? ke({
3908
+ targetOffset: t ? Ce({
3500
3909
  event: e,
3501
3910
  target: t
3502
3911
  }) : void 0,
3503
- builderTargetOffset: n ? ke({
3912
+ builderTargetOffset: n ? Ce({
3504
3913
  event: e,
3505
3914
  target: n
3506
3915
  }) : void 0,
3507
3916
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3508
3917
  }
3509
3918
  };
3510
- }, zn = ["svelte", "qwik", "vue"], Ce = () => zn.includes($) && (W() || ae()), Kn = (e) => {
3919
+ }, ni = ["svelte", "qwik", "vue"], we = () => ni.includes(F) && (W() || X()), ii = (e) => {
3511
3920
  var a, r;
3512
3921
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3513
3922
  let o = "";
@@ -3519,29 +3928,29 @@ font-display: fallback;
3519
3928
  font-weight: 400;
3520
3929
  }
3521
3930
  `.trim()), e.files)
3522
- for (const s in e.files) {
3523
- if (!(String(Number(s)) === s))
3931
+ for (const l in e.files) {
3932
+ if (!(String(Number(l)) === l))
3524
3933
  continue;
3525
- const c = e.files[s];
3934
+ const c = e.files[l];
3526
3935
  c && c !== i && (o += `
3527
3936
  @font-face {
3528
3937
  font-family: "${t}";
3529
3938
  src: url('${c}') format('woff2');
3530
3939
  font-display: fallback;
3531
- font-weight: ${s};
3940
+ font-weight: ${l};
3532
3941
  }
3533
3942
  `.trim());
3534
3943
  }
3535
3944
  return o;
3536
- }, Jn = ({
3945
+ }, oi = ({
3537
3946
  customFonts: e
3538
3947
  }) => {
3539
3948
  var t;
3540
- return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
3541
- }, Gn = ({
3949
+ return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
3950
+ }, ai = ({
3542
3951
  cssCode: e,
3543
3952
  contentId: t
3544
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yn = `
3953
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
3545
3954
  .builder-button {
3546
3955
  all: unset;
3547
3956
  }
@@ -3558,39 +3967,39 @@ font-weight: ${s};
3558
3967
  text-align: inherit;
3559
3968
  font-family: inherit;
3560
3969
  }
3561
- `, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
3562
- function Zn(e) {
3563
- var p, C, V;
3564
- const t = O(null);
3565
- function n(k) {
3566
- var R, B;
3567
- const I = {
3970
+ `, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
3971
+ function ci(e) {
3972
+ var x, I, B;
3973
+ const t = D(null);
3974
+ function n(C) {
3975
+ var T, w;
3976
+ const S = {
3568
3977
  ...e.builderContextSignal.rootState,
3569
- ...k
3978
+ ...C
3570
3979
  };
3571
- e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, I) : e.setBuilderContextSignal((u) => ({
3572
- ...u,
3573
- rootState: I
3980
+ e.builderContextSignal.rootSetState ? (w = (T = e.builderContextSignal).rootSetState) == null || w.call(T, S) : e.setBuilderContextSignal((m) => ({
3981
+ ...m,
3982
+ rootState: S
3574
3983
  }));
3575
3984
  }
3576
- function i(k) {
3577
- var R, B, u, S, P;
3578
- const I = {
3985
+ function i(C) {
3986
+ var T, w, m, k, V;
3987
+ const S = {
3579
3988
  ...e.builderContextSignal.content,
3580
- ...k,
3989
+ ...C,
3581
3990
  data: {
3582
- ...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
3583
- ...k == null ? void 0 : k.data
3991
+ ...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
3992
+ ...C == null ? void 0 : C.data
3584
3993
  },
3585
3994
  meta: {
3586
- ...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
3587
- ...k == null ? void 0 : k.meta,
3588
- breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
3995
+ ...(w = e.builderContextSignal.content) == null ? void 0 : w.meta,
3996
+ ...C == null ? void 0 : C.meta,
3997
+ breakpoints: ((m = C == null ? void 0 : C.meta) == null ? void 0 : m.breakpoints) || ((V = (k = e.builderContextSignal.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints)
3589
3998
  }
3590
3999
  };
3591
- e.setBuilderContextSignal((w) => ({
3592
- ...w,
3593
- content: I
4000
+ e.setBuilderContextSignal((E) => ({
4001
+ ...E,
4002
+ content: S
3594
4003
  }));
3595
4004
  }
3596
4005
  function o() {
@@ -3599,62 +4008,62 @@ function Zn(e) {
3599
4008
  "aria-hidden": !0
3600
4009
  };
3601
4010
  }
3602
- const [a, r] = E(
4011
+ const [a, r] = R(
3603
4012
  () => e.contentWrapper || "div"
3604
4013
  );
3605
- function s(k) {
4014
+ function l(C) {
3606
4015
  return Ye({
3607
4016
  model: e.model,
3608
4017
  trustedHosts: e.trustedHosts,
3609
4018
  callbacks: {
3610
- configureSdk: (I) => {
3611
- var u;
3612
- const { breakpoints: R, contentId: B } = I;
3613
- !B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
4019
+ configureSdk: (S) => {
4020
+ var m;
4021
+ const { breakpoints: T, contentId: w } = S;
4022
+ !w || w !== ((m = e.builderContextSignal.content) == null ? void 0 : m.id) || T && i({
3614
4023
  meta: {
3615
- breakpoints: R
4024
+ breakpoints: T
3616
4025
  }
3617
4026
  });
3618
4027
  },
3619
- animation: (I) => {
3620
- $e(I);
4028
+ animation: (S) => {
4029
+ Fe(S);
3621
4030
  },
3622
- contentUpdate: (I) => {
3623
- i(I);
4031
+ contentUpdate: (S) => {
4032
+ i(S);
3624
4033
  }
3625
4034
  }
3626
- })(k);
4035
+ })(C);
3627
4036
  }
3628
- const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
3629
- function f(k) {
3630
- var I, R;
4037
+ const [u, c] = R(() => ({})), [h, b] = R(() => ({})), [f, p] = R(() => !1);
4038
+ function d(C) {
4039
+ var S, T;
3631
4040
  if (e.builderContextSignal.content) {
3632
- const B = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
3633
- ue({
4041
+ const w = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, m = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
4042
+ me({
3634
4043
  apiHost: e.apiHost,
3635
4044
  type: "click",
3636
- canTrack: K(e.canTrack),
3637
- contentId: u,
4045
+ canTrack: q(e.canTrack),
4046
+ contentId: m,
3638
4047
  apiKey: e.apiKey,
3639
- variationId: B !== u ? B : void 0,
3640
- ...qn(k),
3641
- unique: !m
4048
+ variationId: w !== m ? w : void 0,
4049
+ ...ti(C),
4050
+ unique: !f
3642
4051
  });
3643
4052
  }
3644
- m || y(!0);
4053
+ f || p(!0);
3645
4054
  }
3646
- function v() {
3647
- var I, R, B;
3648
- const k = (B = (R = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : R.httpRequests) != null ? B : {};
3649
- Object.entries(k).forEach(([u, S]) => {
3650
- if (!S || h[u] || d[u] && !W())
4055
+ function g() {
4056
+ var S, T, w;
4057
+ const C = (w = (T = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : T.httpRequests) != null ? w : {};
4058
+ Object.entries(C).forEach(([m, k]) => {
4059
+ if (!k || h[m] || u[m] && !W())
3651
4060
  return;
3652
- h[u] = !0;
3653
- const P = S.replace(
4061
+ h[m] = !0;
4062
+ const V = k.replace(
3654
4063
  /{{([^}]+)}}/g,
3655
- (w, L) => String(
4064
+ (E, O) => String(
3656
4065
  U({
3657
- code: L,
4066
+ code: O,
3658
4067
  context: e.context || {},
3659
4068
  localState: void 0,
3660
4069
  rootState: e.builderContextSignal.rootState,
@@ -3662,18 +4071,18 @@ function Zn(e) {
3662
4071
  })
3663
4072
  )
3664
4073
  );
3665
- Ie(P), fetch(P).then((w) => w.json()).then((w) => {
4074
+ Ie(V), fetch(V).then((E) => E.json()).then((E) => {
3666
4075
  n({
3667
- [u]: w
3668
- }), d[u] = !0;
3669
- }).catch((w) => {
3670
- console.error("error fetching dynamic data", S, w);
4076
+ [m]: E
4077
+ }), u[m] = !0;
4078
+ }).catch((E) => {
4079
+ console.error("error fetching dynamic data", k, E);
3671
4080
  }).finally(() => {
3672
- h[u] = !1;
4081
+ h[m] = !1;
3673
4082
  });
3674
4083
  });
3675
4084
  }
3676
- function x() {
4085
+ function v() {
3677
4086
  W() && window.dispatchEvent(
3678
4087
  new CustomEvent(
3679
4088
  "builder:component:stateChange",
@@ -3688,11 +4097,11 @@ function Zn(e) {
3688
4097
  )
3689
4098
  );
3690
4099
  }
3691
- const b = O(!1);
3692
- return b.current || (v(), x(), b.current = !0), A(() => {
3693
- var k, I, R;
3694
- if (D()) {
3695
- if (W() && !e.isNestedRender && (window.addEventListener("message", s), Ke(), Je({
4100
+ const y = D(!1);
4101
+ return y.current || (g(), v(), y.current = !0), A(() => {
4102
+ var C, S, T;
4103
+ if (L()) {
4104
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), Je(), Ge({
3696
4105
  ...e.locale ? {
3697
4106
  locale: e.locale
3698
4107
  } : {},
@@ -3704,48 +4113,48 @@ function Zn(e) {
3704
4113
  } : {}
3705
4114
  }), Object.values(
3706
4115
  e.builderContextSignal.componentInfos
3707
- ).forEach((u) => {
3708
- var S, P;
3709
- if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
3710
- const w = Ge(u);
3711
- (P = window.parent) == null || P.postMessage(w, "*");
4116
+ ).forEach((m) => {
4117
+ var k, V;
4118
+ if (!e.model || !((k = m.models) != null && k.length) || m.models.includes(e.model)) {
4119
+ const E = Qe(m);
4120
+ (V = window.parent) == null || V.postMessage(E, "*");
3712
4121
  }
3713
4122
  }), window.addEventListener(
3714
4123
  "builder:component:stateChangeListenerActivated",
3715
- x
3716
- )), e.builderContextSignal.content && K(e.canTrack)) {
3717
- const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (I = e.builderContextSignal.content) == null ? void 0 : I.id, P = e.apiKey;
3718
- ue({
4124
+ v
4125
+ )), e.builderContextSignal.content && q(e.canTrack)) {
4126
+ const m = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, k = (S = e.builderContextSignal.content) == null ? void 0 : S.id, V = e.apiKey;
4127
+ me({
3719
4128
  apiHost: e.apiHost,
3720
4129
  type: "impression",
3721
4130
  canTrack: !0,
3722
- contentId: S,
3723
- apiKey: P,
3724
- variationId: u !== S ? u : void 0
4131
+ contentId: k,
4132
+ apiKey: V,
4133
+ variationId: m !== k ? m : void 0
3725
4134
  });
3726
4135
  }
3727
- if (ae() && !W()) {
3728
- const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
3729
- `builder.overrides.${S}`
3730
- ), w = u.get("apiKey") || u.get("builder.space");
3731
- (S === "BUILDER_STUDIO" || S === e.model && w === e.apiKey && (!e.content || P === e.content.id)) && we({
4136
+ if (X() && !W()) {
4137
+ const m = new URL(location.href).searchParams, k = m.get("builder.preview"), V = m.get(
4138
+ `builder.overrides.${k}`
4139
+ ), E = m.get("apiKey") || m.get("builder.space");
4140
+ (k === "BUILDER_STUDIO" || k === e.model && E === e.apiKey && (!e.content || V === e.content.id)) && Ee({
3732
4141
  model: e.model || "",
3733
4142
  apiKey: e.apiKey,
3734
4143
  apiVersion: e.builderContextSignal.apiVersion,
3735
- ...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
4144
+ ...k === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
3736
4145
  query: {
3737
4146
  id: e.context.symbolId
3738
4147
  }
3739
4148
  } : {}
3740
- }).then((L) => {
3741
- L && i(L);
4149
+ }).then((O) => {
4150
+ O && i(O);
3742
4151
  });
3743
4152
  }
3744
4153
  }
3745
4154
  }, []), A(() => {
3746
4155
  e.content && i(e.content);
3747
4156
  }, [e.content]), A(() => {
3748
- x();
4157
+ v();
3749
4158
  }, [e.builderContextSignal.rootState]), A(() => {
3750
4159
  e.data && n(e.data);
3751
4160
  }, [e.data]), A(() => {
@@ -3753,22 +4162,22 @@ function Zn(e) {
3753
4162
  locale: e.locale
3754
4163
  });
3755
4164
  }, [e.locale]), A(() => () => {
3756
- D() && (window.removeEventListener("message", s), window.removeEventListener(
4165
+ L() && (window.removeEventListener("message", l), window.removeEventListener(
3757
4166
  "builder:component:stateChangeListenerActivated",
3758
- x
4167
+ v
3759
4168
  ));
3760
- }, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ l(
4169
+ }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
3761
4170
  a,
3762
4171
  {
3763
4172
  ref: t,
3764
- onClick: (k) => f(k),
3765
- "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
4173
+ onClick: (C) => d(C),
4174
+ "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
3766
4175
  "builder-model": e.model,
3767
- className: Xn(
3768
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4176
+ className: si(
4177
+ ((I = e.content) == null ? void 0 : I.testVariationId) || ((B = e.content) == null ? void 0 : B.id)
3769
4178
  ),
3770
4179
  style: {
3771
- display: !e.builderContextSignal.content && Ce() ? "none" : void 0
4180
+ display: !e.builderContextSignal.content && we() ? "none" : void 0
3772
4181
  },
3773
4182
  ...o(),
3774
4183
  ...e.contentWrapperProps,
@@ -3776,21 +4185,21 @@ function Zn(e) {
3776
4185
  }
3777
4186
  ) : null });
3778
4187
  }
3779
- function ei(e) {
3780
- const [t, n] = E(
4188
+ function ui(e) {
4189
+ const [t, n] = R(
3781
4190
  () => `
3782
- ${Gn({
4191
+ ${ai({
3783
4192
  cssCode: e.cssCode,
3784
4193
  contentId: e.contentId
3785
4194
  })}
3786
- ${Jn({
4195
+ ${oi({
3787
4196
  customFonts: e.customFonts
3788
4197
  })}
3789
- ${Qn(e.isNestedRender)}
4198
+ ${li(e.isNestedRender)}
3790
4199
  `.trim()
3791
4200
  );
3792
- return /* @__PURE__ */ l(
3793
- Q,
4201
+ return /* @__PURE__ */ s(
4202
+ M,
3794
4203
  {
3795
4204
  id: "builderio-content",
3796
4205
  styles: t,
@@ -3798,15 +4207,15 @@ ${Qn(e.isNestedRender)}
3798
4207
  }
3799
4208
  );
3800
4209
  }
3801
- const ti = ({
4210
+ const di = ({
3802
4211
  content: e,
3803
4212
  data: t,
3804
4213
  locale: n
3805
4214
  }) => {
3806
- var a, r, s;
4215
+ var a, r, l;
3807
4216
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3808
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3809
- d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4217
+ return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((u) => {
4218
+ u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
3810
4219
  }), {
3811
4220
  ...i,
3812
4221
  ...o,
@@ -3815,7 +4224,7 @@ const ti = ({
3815
4224
  locale: n
3816
4225
  } : {}
3817
4226
  };
3818
- }, ni = ({
4227
+ }, mi = ({
3819
4228
  content: e,
3820
4229
  data: t
3821
4230
  }) => e ? {
@@ -3827,45 +4236,45 @@ const ti = ({
3827
4236
  meta: e == null ? void 0 : e.meta
3828
4237
  } : void 0;
3829
4238
  function Te(e) {
3830
- var c, h, g, m, y, f, v, x, b;
3831
- const [t, n] = E(
4239
+ var c, h, b, f, p, d, g, v, y;
4240
+ const [t, n] = R(
3832
4241
  () => {
3833
- var p, C;
3834
- return Hn({
4242
+ var x, I;
4243
+ return Xn({
3835
4244
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3836
- variationId: (p = e.content) == null ? void 0 : p.testVariationId,
4245
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3837
4246
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3838
- contentId: (C = e.content) == null ? void 0 : C.id
4247
+ contentId: (I = e.content) == null ? void 0 : I.id
3839
4248
  });
3840
4249
  }
3841
4250
  );
3842
- function i(p) {
3843
- s((C) => ({
3844
- ...C,
3845
- rootState: p
4251
+ function i(x) {
4252
+ l((I) => ({
4253
+ ...I,
4254
+ rootState: x
3846
4255
  }));
3847
4256
  }
3848
- const [o, a] = E(
4257
+ const [o, a] = R(
3849
4258
  () => [
3850
- ...ve(),
4259
+ ...Se(),
3851
4260
  ...e.customComponents || []
3852
4261
  ].reduce(
3853
- (p, { component: C, ...V }) => ({
3854
- ...p,
3855
- [V.name]: {
3856
- component: C,
3857
- ...me(V)
4262
+ (x, { component: I, ...B }) => ({
4263
+ ...x,
4264
+ [B.name]: {
4265
+ component: I,
4266
+ ...fe(B)
3858
4267
  }
3859
4268
  }),
3860
4269
  {}
3861
4270
  )
3862
- ), [r, s] = E(() => ({
3863
- content: ni({
4271
+ ), [r, l] = R(() => ({
4272
+ content: mi({
3864
4273
  content: e.content,
3865
4274
  data: e.data
3866
4275
  }),
3867
4276
  localState: void 0,
3868
- rootState: ti({
4277
+ rootState: di({
3869
4278
  content: e.content,
3870
4279
  data: e.data,
3871
4280
  locale: e.locale
@@ -3876,12 +4285,12 @@ function Te(e) {
3876
4285
  apiKey: e.apiKey,
3877
4286
  apiVersion: e.apiVersion,
3878
4287
  componentInfos: [
3879
- ...ve(),
4288
+ ...Se(),
3880
4289
  ...e.customComponents || []
3881
4290
  ].reduce(
3882
- (p, { component: C, ...V }) => ({
3883
- ...p,
3884
- [V.name]: me(V)
4291
+ (x, { component: I, ...B }) => ({
4292
+ ...x,
4293
+ [B.name]: fe(B)
3885
4294
  }),
3886
4295
  {}
3887
4296
  ),
@@ -3890,31 +4299,31 @@ function Te(e) {
3890
4299
  BlocksWrapperProps: e.blocksWrapperProps || {},
3891
4300
  nonce: e.nonce || "",
3892
4301
  model: e.model || ""
3893
- })), d = O(!1);
3894
- if (!d.current) {
3895
- e.apiKey || G.error(
4302
+ })), u = D(!1);
4303
+ if (!u.current) {
4304
+ e.apiKey || Y.error(
3896
4305
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3897
4306
  );
3898
- const p = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3899
- p && U({
3900
- code: p,
4307
+ const x = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4308
+ x && U({
4309
+ code: x,
3901
4310
  context: e.context || {},
3902
4311
  localState: void 0,
3903
4312
  rootState: r.rootState,
3904
- rootSetState: (C) => {
3905
- Object.assign(r.rootState, C);
4313
+ rootSetState: (I) => {
4314
+ Object.assign(r.rootState, I);
3906
4315
  },
3907
4316
  isExpression: !1
3908
- }), d.current = !0;
4317
+ }), u.current = !0;
3909
4318
  }
3910
- return /* @__PURE__ */ l(
3911
- Pe.Provider,
4319
+ return /* @__PURE__ */ s(
4320
+ Ve.Provider,
3912
4321
  {
3913
4322
  value: {
3914
4323
  registeredComponents: o
3915
4324
  },
3916
4325
  children: /* @__PURE__ */ N(
3917
- Zn,
4326
+ ci,
3918
4327
  {
3919
4328
  apiHost: e.apiHost,
3920
4329
  nonce: e.nonce,
@@ -3932,30 +4341,30 @@ function Te(e) {
3932
4341
  contentWrapperProps: e.contentWrapperProps,
3933
4342
  trustedHosts: e.trustedHosts,
3934
4343
  isNestedRender: e.isNestedRender,
3935
- setBuilderContextSignal: s,
4344
+ setBuilderContextSignal: l,
3936
4345
  children: [
3937
- e.isSsrAbTest ? /* @__PURE__ */ l(
3938
- oe,
4346
+ e.isSsrAbTest ? /* @__PURE__ */ s(
4347
+ Q,
3939
4348
  {
3940
4349
  id: "builderio-variant-visibility",
3941
4350
  scriptStr: t,
3942
4351
  nonce: e.nonce || ""
3943
4352
  }
3944
4353
  ) : null,
3945
- /* @__PURE__ */ l(
3946
- ei,
4354
+ /* @__PURE__ */ s(
4355
+ ui,
3947
4356
  {
3948
4357
  nonce: e.nonce || "",
3949
4358
  isNestedRender: e.isNestedRender,
3950
- contentId: (g = r.content) == null ? void 0 : g.id,
3951
- cssCode: (y = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
3952
- customFonts: (v = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
4359
+ contentId: (b = r.content) == null ? void 0 : b.id,
4360
+ cssCode: (p = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : p.cssCode,
4361
+ customFonts: (g = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
3953
4362
  }
3954
4363
  ),
3955
- /* @__PURE__ */ l(
3956
- F,
4364
+ /* @__PURE__ */ s(
4365
+ $,
3957
4366
  {
3958
- blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
4367
+ blocks: (y = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
3959
4368
  context: r,
3960
4369
  registeredComponents: o,
3961
4370
  linkComponent: e.linkComponent
@@ -3967,71 +4376,71 @@ function Te(e) {
3967
4376
  }
3968
4377
  );
3969
4378
  }
3970
- function ii(e) {
4379
+ function fi(e) {
3971
4380
  var r;
3972
- const [t, n] = E(
3973
- () => On({
3974
- canTrack: K(e.canTrack),
4381
+ const [t, n] = R(
4382
+ () => Jn({
4383
+ canTrack: q(e.canTrack),
3975
4384
  content: e.content
3976
4385
  })
3977
4386
  );
3978
4387
  function i() {
3979
- var s;
3980
- return _n(
3981
- q(e.content).map((d) => ({
3982
- id: d.testVariationId,
3983
- testRatio: d.testRatio
4388
+ var l;
4389
+ return Yn(
4390
+ K(e.content).map((u) => ({
4391
+ id: u.testVariationId,
4392
+ testRatio: u.testRatio
3984
4393
  })),
3985
- ((s = e.content) == null ? void 0 : s.id) || ""
4394
+ ((l = e.content) == null ? void 0 : l.id) || ""
3986
4395
  );
3987
4396
  }
3988
4397
  function o() {
3989
- return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
4398
+ return K(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3990
4399
  }
3991
4400
  function a() {
3992
- var s;
4401
+ var l;
3993
4402
  return t ? {
3994
4403
  ...e.content,
3995
- testVariationId: (s = e.content) == null ? void 0 : s.id
3996
- } : Qe({
4404
+ testVariationId: (l = e.content) == null ? void 0 : l.id
4405
+ } : Xe({
3997
4406
  item: e.content,
3998
- canTrack: K(e.canTrack)
4407
+ canTrack: q(e.canTrack)
3999
4408
  });
4000
4409
  }
4001
4410
  return A(() => {
4002
- }, []), /* @__PURE__ */ N(T, { children: [
4003
- !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
4004
- oe,
4411
+ }, []), /* @__PURE__ */ N(P, { children: [
4412
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
4413
+ Q,
4005
4414
  {
4006
4415
  id: "builderio-init-variants-fns",
4007
- scriptStr: Un(),
4416
+ scriptStr: Qn(),
4008
4417
  nonce: e.nonce || ""
4009
4418
  }
4010
4419
  ) : null,
4011
- t ? /* @__PURE__ */ N(T, { children: [
4012
- /* @__PURE__ */ l(
4013
- Q,
4420
+ t ? /* @__PURE__ */ N(P, { children: [
4421
+ /* @__PURE__ */ s(
4422
+ M,
4014
4423
  {
4015
4424
  id: "builderio-variants",
4016
4425
  styles: o(),
4017
4426
  nonce: e.nonce || ""
4018
4427
  }
4019
4428
  ),
4020
- /* @__PURE__ */ l(
4021
- oe,
4429
+ /* @__PURE__ */ s(
4430
+ Q,
4022
4431
  {
4023
4432
  id: "builderio-variants-visibility",
4024
4433
  scriptStr: i(),
4025
4434
  nonce: e.nonce || ""
4026
4435
  }
4027
4436
  ),
4028
- (r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
4437
+ (r = K(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4029
4438
  Te,
4030
4439
  {
4031
4440
  apiHost: e.apiHost,
4032
4441
  isNestedRender: e.isNestedRender,
4033
4442
  nonce: e.nonce,
4034
- content: s,
4443
+ content: l,
4035
4444
  showContent: !1,
4036
4445
  model: e.model,
4037
4446
  data: e.data,
@@ -4050,10 +4459,10 @@ function ii(e) {
4050
4459
  contentWrapperProps: e.contentWrapperProps,
4051
4460
  trustedHosts: e.trustedHosts
4052
4461
  },
4053
- s.testVariationId
4462
+ l.testVariationId
4054
4463
  ))
4055
4464
  ] }) : null,
4056
- /* @__PURE__ */ l(
4465
+ /* @__PURE__ */ s(
4057
4466
  Te,
4058
4467
  {
4059
4468
  apiHost: e.apiHost,
@@ -4081,13 +4490,13 @@ function ii(e) {
4081
4490
  )
4082
4491
  ] });
4083
4492
  }
4084
- const oi = async ({
4493
+ const hi = async ({
4085
4494
  builderContextValue: e,
4086
4495
  symbol: t
4087
4496
  }) => {
4088
4497
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4089
4498
  (e != null && e.apiKey))
4090
- return we({
4499
+ return Ee({
4091
4500
  model: t.model,
4092
4501
  apiKey: e.apiKey,
4093
4502
  apiVersion: e.apiVersion,
@@ -4097,11 +4506,11 @@ const oi = async ({
4097
4506
  }
4098
4507
  }
4099
4508
  }).catch((n) => {
4100
- G.error("Could not fetch symbol content: ", n);
4509
+ Y.error("Could not fetch symbol content: ", n);
4101
4510
  });
4102
4511
  };
4103
- function ai(e) {
4104
- var s, d, c, h;
4512
+ function gi(e) {
4513
+ var l, u, c, h;
4105
4514
  function t() {
4106
4515
  return "div";
4107
4516
  }
@@ -4109,31 +4518,31 @@ function ai(e) {
4109
4518
  return "div";
4110
4519
  }
4111
4520
  function i() {
4112
- var g, m;
4521
+ var b, f;
4113
4522
  return [
4114
4523
  e.attributes[H()],
4115
4524
  "builder-symbol",
4116
- (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4117
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4525
+ (b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
4526
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4118
4527
  ].filter(Boolean).join(" ");
4119
4528
  }
4120
- const [o, a] = E(() => {
4121
- var g;
4122
- return (g = e.symbol) == null ? void 0 : g.content;
4529
+ const [o, a] = R(() => {
4530
+ var b;
4531
+ return (b = e.symbol) == null ? void 0 : b.content;
4123
4532
  });
4124
4533
  function r() {
4125
- o || oi({
4534
+ o || hi({
4126
4535
  symbol: e.symbol,
4127
4536
  builderContextValue: e.builderContext
4128
- }).then((g) => {
4129
- g && a(g);
4537
+ }).then((b) => {
4538
+ b && a(b);
4130
4539
  });
4131
4540
  }
4132
4541
  return A(() => {
4133
4542
  }, []), A(() => {
4134
4543
  r();
4135
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4136
- ii,
4544
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4545
+ fi,
4137
4546
  {
4138
4547
  nonce: e.builderContext.nonce,
4139
4548
  isNestedRender: !0,
@@ -4141,11 +4550,11 @@ function ai(e) {
4141
4550
  apiKey: e.builderContext.apiKey,
4142
4551
  context: {
4143
4552
  ...e.builderContext.context,
4144
- symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4553
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4145
4554
  },
4146
4555
  customComponents: Object.values(e.builderComponents),
4147
4556
  data: {
4148
- ...(d = e.symbol) == null ? void 0 : d.data,
4557
+ ...(u = e.symbol) == null ? void 0 : u.data,
4149
4558
  ...e.builderContext.localState,
4150
4559
  ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4151
4560
  },
@@ -4159,15 +4568,16 @@ function ai(e) {
4159
4568
  ) });
4160
4569
  }
4161
4570
  export {
4162
- F as Blocks,
4571
+ $ as Blocks,
4163
4572
  le as BuilderContext,
4164
- et as Button,
4165
- qt as Columns,
4166
- ii as Content,
4167
- zt as Fragment,
4168
- Gt as Image,
4169
- Yt as Section,
4170
- ai as Symbol,
4171
- mn as Text,
4172
- Wn as Video
4573
+ nt as Button,
4574
+ Kt as Columns,
4575
+ fi as Content,
4576
+ Jt as Fragment,
4577
+ Yt as Image,
4578
+ Xt as Section,
4579
+ gi as Symbol,
4580
+ kn as Text,
4581
+ Mn as Video,
4582
+ Si as setClientUserAttributes
4173
4583
  };