@builder.io/sdk-react 3.0.5 → 3.0.6

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 (77) hide show
  1. package/lib/browser/blocks-exports.cjs +166 -29
  2. package/lib/browser/blocks-exports.mjs +1179 -765
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +17 -16
  5. package/lib/browser/server-entry-a1c64831.cjs +2 -0
  6. package/lib/browser/{server-entry-785c0408.js → server-entry-df5e89e5.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-cd6e0363.js → accordion-289f3464.js} +1 -1
  10. package/lib/edge/{accordion-190c4426.cjs → accordion-fbfb71f4.cjs} +1 -1
  11. package/lib/edge/{blocks-766e8d45.cjs → blocks-459a090b.cjs} +10 -10
  12. package/lib/edge/{blocks-fe2d7c1a.js → blocks-582a7fd7.js} +87 -87
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +13 -12
  15. package/lib/edge/{button-6a27481c.js → button-9b112da6.js} +2 -2
  16. package/lib/edge/{button-694fcd4f.cjs → button-da357144.cjs} +1 -1
  17. package/lib/edge/{columns-b38bf0f7.cjs → columns-a211113f.cjs} +1 -1
  18. package/lib/edge/{columns-90e6407e.js → columns-aba58dda.js} +3 -3
  19. package/lib/edge/{content-variants-cbb89349.js → content-variants-08f4371c.js} +165 -124
  20. package/lib/edge/content-variants-4b5899b5.cjs +134 -0
  21. package/lib/edge/dynamic-blocks-exports.cjs +3 -1
  22. package/lib/edge/dynamic-blocks-exports.mjs +5 -2
  23. package/lib/edge/{form-16bbf874.js → form-4d4553c2.js} +3 -3
  24. package/lib/edge/{form-547645eb.cjs → form-e3a3afd4.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-8b719c6b.js → get-class-prop-name-38c2baca.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-58770197.cjs → get-class-prop-name-fbe244e3.cjs} +1 -1
  27. package/lib/edge/{img-8859c851.cjs → img-8d549af8.cjs} +1 -1
  28. package/lib/edge/{img-d3351743.js → img-c49066fa.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +18 -17
  31. package/lib/edge/{input-4fe0fc6d.cjs → input-1ae3842f.cjs} +1 -1
  32. package/lib/edge/{input-24c601b4.js → input-e7301f4e.js} +1 -1
  33. package/lib/edge/personalization-container-035be6ba.js +384 -0
  34. package/lib/edge/personalization-container-25cd8b5e.cjs +138 -0
  35. package/lib/edge/{select-af05377b.js → select-4187b229.js} +1 -1
  36. package/lib/edge/{select-c73bd418.cjs → select-64fdaa79.cjs} +1 -1
  37. package/lib/edge/server-entry-2ef4e66a.cjs +2 -0
  38. package/lib/edge/{server-entry-67bfc740.js → server-entry-61fca4f7.js} +322 -280
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-759c8dd9.cjs → slot-995f63c2.cjs} +1 -1
  42. package/lib/edge/{slot-32a4df0c.js → slot-d6c46a42.js} +3 -3
  43. package/lib/edge/{symbol-8d63aa7d.cjs → symbol-498daa97.cjs} +1 -1
  44. package/lib/edge/{symbol-50360a37.js → symbol-623dc717.js} +2 -2
  45. package/lib/edge/{tabs-6535c934.js → tabs-12ba41b1.js} +3 -3
  46. package/lib/edge/{tabs-fc6c1700.cjs → tabs-d39499cd.cjs} +1 -1
  47. package/lib/node/blocks-exports.cjs +168 -31
  48. package/lib/node/blocks-exports.mjs +1292 -878
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +17 -16
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +3 -3
  53. package/lib/node/{server-entry-ffc70868.js → server-entry-27d9d31e.js} +279 -237
  54. package/lib/node/server-entry-98ebff74.cjs +2 -0
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-2cea7252.js → setIvm-2dde9074.js} +1 -1
  58. package/lib/node/{setIvm-4ce0db03.cjs → setIvm-784fe19f.cjs} +1 -1
  59. package/lib/node/setIvm.cjs +1 -1
  60. package/lib/node/setIvm.mjs +2 -2
  61. package/lib/node/{should-force-browser-runtime-in-node-c0d50009.js → should-force-browser-runtime-in-node-80f081c8.js} +1 -1
  62. package/lib/node/{should-force-browser-runtime-in-node-d3e6df07.cjs → should-force-browser-runtime-in-node-cd6baa94.cjs} +1 -1
  63. package/package.json +1 -1
  64. package/types/blocks/personalization-container/component-info.d.ts +2 -0
  65. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
  66. package/types/blocks/personalization-container/helpers.d.ts +27 -0
  67. package/types/blocks/personalization-container/index.d.ts +1 -0
  68. package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
  69. package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
  70. package/types/constants/sdk-version.d.ts +1 -1
  71. package/types/helpers/user-attributes.d.ts +17 -0
  72. package/types/index-helpers/blocks-exports.d.ts +1 -0
  73. package/types/types/input.d.ts +1 -0
  74. package/lib/browser/server-entry-101d66b8.cjs +0 -2
  75. package/lib/edge/content-variants-4e385c19.cjs +0 -134
  76. package/lib/edge/server-entry-3c7fa63a.cjs +0 -2
  77. package/lib/node/server-entry-95273908.cjs +0 -2
@@ -1,16 +1,17 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
3
- import { TARGET as $, isBrowser as j, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as q, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-ffc70868.js";
4
- import * as Ge from "react";
5
- import { createContext as we, useEffect as A, useState as R, useRef as L, useContext as fe, createElement as Ee } from "react";
6
- import { getFunctionArguments as Ye, flattenState as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Re, fastClone as re } from "./setIvm-2cea7252.js";
7
- import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-c0d50009.js";
8
- const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
2
+ import { TARGET as F, isBrowser as L, logger as oe, checkIsDefined as ie, isPreviewing as G, isEditing as W, userAttributesService as de, getDefaultCanTrack as _, logFetch as we, registerInsertMenu as Me, setupBrowserForEditing as ze, createRegisterComponentMessage as Ke, _track as me, fetchOneEntry as Ie, createEditorListener as Je, serializeIncludingFunctions as fe, handleABTestingSync as Ge } from "./server-entry-27d9d31e.js";
3
+ import { setClientUserAttributes as ki } from "./server-entry-27d9d31e.js";
4
+ import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
5
+ import * as Qe from "react";
6
+ import { createContext as Ee, useEffect as A, useState as E, useRef as D, useContext as he, createElement as Re } from "react";
7
+ import { getFunctionArguments as Ye, flattenState as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe, fastClone as re } from "./setIvm-2dde9074.js";
8
+ import { shouldForceBrowserRuntimeInNode as nt } from "./should-force-browser-runtime-in-node-80f081c8.js";
9
+ const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && it.has(e.toLowerCase());
9
10
  function le(e) {
10
- return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
+ return /* @__PURE__ */ s(R, { children: at(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
12
  }
12
- const U = () => {
13
- switch ($) {
13
+ const q = () => {
14
+ switch (F) {
14
15
  case "react":
15
16
  case "reactNative":
16
17
  case "rsc":
@@ -27,7 +28,7 @@ function ot(e) {
27
28
  function t() {
28
29
  return {
29
30
  ...e.attributes,
30
- [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
31
+ [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
31
32
  ...e.link ? {
32
33
  href: e.link,
33
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -47,7 +48,7 @@ function ot(e) {
47
48
  }
48
49
  );
49
50
  }
50
- const se = we({
51
+ const se = Ee({
51
52
  content: null,
52
53
  context: {},
53
54
  localState: void 0,
@@ -62,65 +63,65 @@ const se = we({
62
63
  BlocksWrapperProps: {},
63
64
  nonce: "",
64
65
  model: ""
65
- }), Pe = we({ registeredComponents: {} }), Be = (e, t, n) => {
66
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
66
+ }), Ve = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
67
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
67
68
  return i === void 0 || i === e ? n : i;
68
- }, at = ({
69
+ }, rt = ({
69
70
  code: e,
70
71
  builder: t,
71
72
  context: n,
72
73
  event: i,
73
- localState: o,
74
+ localState: a,
74
75
  rootSetState: r,
75
- rootState: a
76
+ rootState: o
76
77
  }) => {
77
78
  const l = Ye({
78
79
  builder: t,
79
80
  context: n,
80
81
  event: i,
81
- state: Qe({
82
- rootState: a,
83
- localState: o,
82
+ state: Xe({
83
+ rootState: o,
84
+ localState: a,
84
85
  rootSetState: r
85
86
  })
86
87
  });
87
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
88
- }, rt = (e) => j() || tt({
88
+ return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
89
+ }, lt = (e) => L() || nt({
89
90
  shouldLogWarning: !0
90
- }) ? at(e) : Xe(e), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
91
- var t, n, i, o, r, a;
92
- return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
91
+ }) ? rt(e) : Ze(e), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ut = (e) => {
92
+ var t, n, i, a, r, o;
93
+ return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ct.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
93
94
  };
94
- function D({
95
+ function O({
95
96
  code: e,
96
97
  context: t,
97
98
  localState: n,
98
99
  rootState: i,
99
- rootSetState: o,
100
+ rootSetState: a,
100
101
  event: r,
101
- isExpression: a = !0
102
+ isExpression: o = !0
102
103
  }) {
103
104
  if (e.trim() === "")
104
105
  return;
105
- const l = ct(e.trim());
106
+ const l = ut(e.trim());
106
107
  if (l)
107
108
  return Be({
108
109
  ...i,
109
110
  ...n
110
111
  }, l);
111
- const d = {
112
- code: Ze(e, {
113
- isExpression: a
112
+ const u = {
113
+ code: et(e, {
114
+ isExpression: o
114
115
  }),
115
- builder: et(),
116
+ builder: tt(),
116
117
  context: t,
117
118
  event: r,
118
- rootSetState: o,
119
+ rootSetState: a,
119
120
  rootState: i,
120
121
  localState: n
121
122
  };
122
123
  try {
123
- return rt(d);
124
+ return lt(u);
124
125
  } catch (c) {
125
126
  oe.error("Failed code evaluation: " + c.message, {
126
127
  code: e
@@ -133,15 +134,15 @@ function dt(e, t) {
133
134
  return {
134
135
  ...(n = e.component) == null ? void 0 : n.options,
135
136
  ...e.options,
136
- ...ut(e, t)
137
+ ...mt(e, t)
137
138
  };
138
139
  }
139
- const ut = (e, t) => {
140
+ const mt = (e, t) => {
140
141
  var n, i;
141
142
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
142
143
  return {
143
144
  ...e.component.options,
144
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => D({
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => O({
145
146
  code: r,
146
147
  context: t,
147
148
  localState: t.localState,
@@ -150,67 +151,67 @@ const ut = (e, t) => {
150
151
  }))
151
152
  };
152
153
  };
153
- function mt(e, ...t) {
154
+ function ft(e, ...t) {
154
155
  const n = Object.assign({}, e);
155
156
  for (const i of t)
156
157
  delete n[i];
157
158
  return n;
158
159
  }
159
- function z(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
160
+ function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
161
  if (e == null || typeof e != "object") {
161
162
  t(e, (r) => {
162
163
  n !== null && i !== null && (n[i] = r);
163
164
  });
164
165
  return;
165
166
  }
166
- o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((r, a) => {
167
- t(r, (d) => {
168
- e[a] = d;
169
- }), z(r, t, e, a, o);
170
- }) : Object.entries(e).forEach(([r, a]) => {
171
- t(a, (d) => {
172
- e[r] = d;
173
- }), z(a, t, e, r, o);
167
+ a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
+ t(r, (u) => {
169
+ e[o] = u;
170
+ }), K(r, t, e, o, a);
171
+ }) : Object.entries(e).forEach(([r, o]) => {
172
+ t(o, (u) => {
173
+ e[r] = u;
174
+ }), K(o, t, e, r, a);
174
175
  }));
175
176
  }
176
- function Ve(e) {
177
+ function Ae(e) {
177
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
178
179
  }
179
- function ft(e) {
180
+ function ht(e) {
180
181
  if (!e || !Object.getOwnPropertyNames(e).length)
181
182
  return !1;
182
183
  let t = !1;
183
- return z(e, (n) => {
184
- if (Ve(n)) {
184
+ return K(e, (n) => {
185
+ if (Ae(n)) {
185
186
  t = !0;
186
187
  return;
187
188
  }
188
189
  }), t;
189
190
  }
190
- function ht(e, t) {
191
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (z(e, (n, i) => {
192
- var o;
193
- Ve(n) && i((o = n[t]) != null ? o : void 0);
191
+ function gt(e, t) {
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
193
+ var a;
194
+ Ae(n) && i((a = n[t]) != null ? a : void 0);
194
195
  }), e);
195
196
  }
196
- function gt(e, t) {
197
+ function bt(e, t) {
197
198
  var n, i;
198
- return (n = e.component) != null && n.options && ft((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ht(e.component.options, t != null ? t : "Default")), e;
199
+ return (n = e.component) != null && n.options && ht((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 = gt(e.component.options, t != null ? t : "Default")), e;
199
200
  }
200
- function ne(e) {
201
+ function ae(e) {
201
202
  if (e === null || typeof e != "object")
202
203
  return e;
203
204
  if (Array.isArray(e))
204
- return e.map((n) => ne(n));
205
+ return e.map((n) => ae(n));
205
206
  if (e["@type"] === "@builder.io/sdk:Element")
206
207
  return e;
207
208
  const t = {};
208
209
  for (const n in e)
209
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
210
211
  return t;
211
212
  }
212
- const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
213
- if (bt) {
213
+ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) => {
214
+ if (pt) {
214
215
  const t = re(e);
215
216
  return {
216
217
  ...t,
@@ -222,7 +223,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
222
223
  }
223
224
  };
224
225
  } else {
225
- const t = ne(mt(e, "children", "meta"));
226
+ const t = ae(ft(e, "children", "meta"));
226
227
  return {
227
228
  ...t,
228
229
  properties: {
@@ -235,25 +236,25 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
235
236
  meta: e.meta
236
237
  };
237
238
  }
238
- }, yt = ({
239
+ }, vt = ({
239
240
  block: e,
240
241
  context: t,
241
242
  localState: n,
242
243
  rootState: i,
243
- rootSetState: o
244
+ rootSetState: a
244
245
  }) => {
245
246
  if (!e.bindings)
246
247
  return e;
247
- const r = pt(e);
248
- for (const a in e.bindings) {
249
- const l = e.bindings[a], d = D({
248
+ const r = yt(e);
249
+ for (const o in e.bindings) {
250
+ const l = e.bindings[o], u = O({
250
251
  code: l,
251
252
  localState: n,
252
253
  rootState: i,
253
- rootSetState: o,
254
+ rootSetState: a,
254
255
  context: t
255
256
  });
256
- Re(r, a, d);
257
+ Pe(r, o, u);
257
258
  }
258
259
  return r;
259
260
  };
@@ -262,127 +263,127 @@ function xt({
262
263
  context: t,
263
264
  localState: n,
264
265
  rootState: i,
265
- rootSetState: o
266
+ rootSetState: a
266
267
  }) {
267
- let r = gt(e, i.locale);
268
- return r = r, yt({
268
+ let r = bt(e, i.locale);
269
+ return r = r, vt({
269
270
  block: r,
270
271
  localState: n,
271
272
  rootState: i,
272
- rootSetState: o,
273
+ rootSetState: a,
273
274
  context: t
274
275
  });
275
276
  }
276
- const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
277
- function vt(e, t, n = {}) {
278
- let i, o, r, a = null, l = 0;
279
- const d = function() {
280
- l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
277
+ const Q = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
+ function St(e, t, n = {}) {
279
+ let i, a, r, o = null, l = 0;
280
+ const u = function() {
281
+ l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
281
282
  };
282
283
  return function() {
283
284
  const c = Date.now();
284
285
  !l && n.leading === !1 && (l = c);
285
286
  const h = t - (c - l);
286
- return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
287
+ return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(u, h)), r;
287
288
  };
288
289
  }
289
- function O(e, ...t) {
290
+ function U(e, ...t) {
290
291
  const n = Object(e);
291
292
  for (let i = 1; i < arguments.length; i++) {
292
- const o = arguments[i];
293
- if (o != null)
294
- for (const r in o)
295
- Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
293
+ const a = arguments[i];
294
+ if (a != null)
295
+ for (const r in a)
296
+ Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
296
297
  }
297
298
  return n;
298
299
  }
299
- function St(e) {
300
+ function kt(e) {
300
301
  for (const t of e)
301
302
  switch (t.trigger) {
302
303
  case "pageLoad":
303
- Ne(t);
304
+ $e(t);
304
305
  break;
305
306
  case "scrollInView":
306
- Ct(t);
307
+ Tt(t);
307
308
  break;
308
309
  }
309
310
  }
310
- function Ae(e) {
311
+ function Ne(e) {
311
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
312
313
  }
313
314
  function We(e, t) {
314
- const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
315
- for (const l of a)
316
- for (const d of n)
317
- d in l || (l[d] = i[d]);
315
+ const n = Ct(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
316
+ for (const l of o)
317
+ for (const u of n)
318
+ u in l || (l[u] = i[u]);
318
319
  }
319
- function kt(e) {
320
+ function Ct(e) {
320
321
  const t = [];
321
322
  for (const n of e.steps)
322
323
  for (const i in n.styles)
323
324
  t.indexOf(i) === -1 && t.push(i);
324
325
  return t;
325
326
  }
326
- function Ne(e) {
327
+ function $e(e) {
327
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
329
  if (!t.length) {
329
- Ae(e.elementId || e.id || "");
330
+ Ne(e.elementId || e.id || "");
330
331
  return;
331
332
  }
332
333
  Array.from(t).forEach((n) => {
333
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
334
- n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
334
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
335
336
  n.style.transition = "", n.style.transitionDelay = "";
336
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
337
338
  });
338
339
  });
339
340
  }
340
- function Ct(e) {
341
+ function Tt(e) {
341
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
342
343
  if (!t.length) {
343
- Ae(e.elementId || e.id || "");
344
+ Ne(e.elementId || e.id || "");
344
345
  return;
345
346
  }
346
347
  Array.from(t).forEach((n) => {
347
348
  We(e, n);
348
- let i = !1, o = !1;
349
+ let i = !1, a = !1;
349
350
  function r() {
350
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
351
- O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
352
- o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
351
+ !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
+ U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
353
+ a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
353
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
354
- })) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
355
356
  }
356
- const a = vt(r, 200, {
357
+ const o = St(r, 200, {
357
358
  leading: !1
358
359
  });
359
360
  function l(h) {
360
- const m = h.getBoundingClientRect(), u = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * u;
361
- return m.bottom > g && m.top < u - g;
361
+ const g = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
362
+ return g.bottom > d && g.top < f - d;
362
363
  }
363
- const d = e.steps[0].styles;
364
+ const u = e.steps[0].styles;
364
365
  function c() {
365
- O(n.style, d);
366
+ U(n.style, u);
366
367
  }
367
368
  c(), setTimeout(() => {
368
- n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
369
- }), document.addEventListener("scroll", a, {
369
+ n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
+ }), document.addEventListener("scroll", o, {
370
371
  capture: !0,
371
372
  passive: !0
372
373
  }), r();
373
374
  });
374
375
  }
375
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
376
+ const De = (e) => Object.entries(e).map(([n, i]) => {
376
377
  if (typeof i == "string")
377
- return `${K(n)}: ${i};`;
378
- }).filter(te), Tt = (e) => Fe(e).join(`
379
- `), H = ({
378
+ return `${Q(n)}: ${i};`;
379
+ }).filter(ie), wt = (e) => De(e).join(`
380
+ `), M = ({
380
381
  mediaQuery: e,
381
382
  className: t,
382
383
  styles: n
383
384
  }) => {
384
385
  const i = `.${t} {
385
- ${Tt(n)}
386
+ ${wt(n)}
386
387
  }`;
387
388
  return e ? `${e} {
388
389
  ${i}
@@ -393,21 +394,21 @@ function It({
393
394
  }) {
394
395
  return e;
395
396
  }
396
- const wt = ({
397
+ const Et = ({
397
398
  block: e,
398
399
  context: t
399
- }) => $e(It({
400
+ }) => Fe(It({
400
401
  style: e.style || {},
401
402
  context: t,
402
403
  block: e
403
404
  }));
404
- function $e(e) {
405
- switch ($) {
405
+ function Fe(e) {
406
+ switch (F) {
406
407
  case "svelte":
407
408
  case "vue":
408
409
  case "solid":
409
410
  case "angular":
410
- return Fe(e).join(" ");
411
+ return De(e).join(" ");
411
412
  case "qwik":
412
413
  case "reactNative":
413
414
  case "react":
@@ -415,7 +416,7 @@ function $e(e) {
415
416
  return e;
416
417
  }
417
418
  }
418
- const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
419
+ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
419
420
  block: e,
420
421
  registeredComponents: t,
421
422
  model: n
@@ -424,15 +425,15 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
424
425
  const i = (r = e.component) == null ? void 0 : r.name;
425
426
  if (!i)
426
427
  return null;
427
- const o = t[i];
428
- if (!o || Le(o, n)) {
428
+ const a = t[i];
429
+ if (!a || Le(a, n)) {
429
430
  console.warn(`
430
431
  Could not find a registered component named "${i}".
431
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
432
433
  return;
433
434
  } else
434
- return o;
435
- }, Rt = ({
435
+ return a;
436
+ }, Pt = ({
436
437
  block: e,
437
438
  context: t
438
439
  }) => {
@@ -442,30 +443,30 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
442
443
  } = e;
443
444
  if (!(n != null && n.collection))
444
445
  return;
445
- const o = D({
446
+ const a = O({
446
447
  code: n.collection,
447
448
  localState: t.localState,
448
449
  rootState: t.rootState,
449
450
  rootSetState: t.rootSetState,
450
451
  context: t.context
451
452
  });
452
- if (!Array.isArray(o))
453
+ if (!Array.isArray(a))
453
454
  return;
454
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
455
- return o.map((d, c) => ({
455
+ const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
+ return a.map((u, c) => ({
456
457
  context: {
457
458
  ...t,
458
459
  localState: {
459
460
  ...t.localState,
460
461
  $index: c,
461
- $item: d,
462
- [a]: d,
463
- [`$${a}Index`]: c
462
+ $item: u,
463
+ [o]: u,
464
+ [`$${o}Index`]: c
464
465
  }
465
466
  },
466
467
  block: i
467
468
  }));
468
- }, Pt = (e, t) => {
469
+ }, Vt = (e, t) => {
469
470
  var n;
470
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
471
472
  builderLinkComponent: t
@@ -473,19 +474,19 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
473
474
  }, Bt = (e, t, n) => {
474
475
  var i;
475
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
476
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Le(o, n)))
477
478
  } : {};
478
- }, Vt = (e, t) => {
479
+ }, At = (e, t) => {
479
480
  var n;
480
481
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
481
482
  builderBlock: t
482
483
  } : {};
483
- }, At = (e, t) => {
484
+ }, Nt = (e, t) => {
484
485
  var n;
485
486
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
486
487
  builderContext: t
487
488
  } : {};
488
- }, De = {
489
+ }, Oe = {
489
490
  small: {
490
491
  min: 320,
491
492
  default: 321,
@@ -501,11 +502,11 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
501
502
  default: 991,
502
503
  max: 1200
503
504
  }
504
- }, he = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
505
+ }, ge = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = ({
505
506
  small: e,
506
507
  medium: t
507
508
  }) => {
508
- const n = re(De);
509
+ const n = re(Oe);
509
510
  if (!e || !t)
510
511
  return n;
511
512
  const i = Math.floor(e / 2);
@@ -514,11 +515,11 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
514
515
  min: i,
515
516
  default: i + 1
516
517
  };
517
- const o = n.small.max + 1;
518
+ const a = n.small.max + 1;
518
519
  n.medium = {
519
520
  max: t,
520
- min: o,
521
- default: o + 1
521
+ min: a,
522
+ default: a + 1
522
523
  };
523
524
  const r = n.medium.max + 1;
524
525
  return n.large = {
@@ -528,7 +529,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
528
529
  default: r + 1
529
530
  }, n;
530
531
  };
531
- function J(e) {
532
+ function H(e) {
532
533
  return /* @__PURE__ */ s(
533
534
  "style",
534
535
  {
@@ -541,56 +542,56 @@ function J(e) {
541
542
  function Wt(e) {
542
543
  function t() {
543
544
  const i = e.block;
544
- return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
545
+ return ie(i.hide) ? !i.hide : ie(i.show) ? i.show : !0;
545
546
  }
546
547
  function n() {
547
- var y, b, p;
548
- const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
549
- ((y = r == null ? void 0 : r.meta) == null ? void 0 : y.breakpoints) || {}
550
- ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
548
+ var v, y, x;
549
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Ue(
550
+ ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
551
+ ), l = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, c = a == null ? void 0 : a.small, h = i.id;
551
552
  if (!h)
552
553
  return "";
553
- const m = l ? H({
554
+ const g = l ? M({
554
555
  className: h,
555
556
  styles: l
556
- }) : "", u = d ? H({
557
+ }) : "", f = u ? M({
557
558
  className: h,
558
- styles: d,
559
- mediaQuery: he(
559
+ styles: u,
560
+ mediaQuery: ge(
560
561
  "medium",
561
- a
562
+ o
562
563
  )
563
- }) : "", k = c ? H({
564
+ }) : "", k = c ? M({
564
565
  className: h,
565
566
  styles: c,
566
- mediaQuery: he(
567
+ mediaQuery: ge(
567
568
  "small",
568
- a
569
+ o
569
570
  )
570
- }) : "", g = i.animations && i.animations.find((C) => C.trigger === "hover");
571
- let v = "";
572
- if (g) {
573
- const C = ((p = (b = g.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
574
- v = H({
571
+ }) : "", d = i.animations && i.animations.find((T) => T.trigger === "hover");
572
+ let b = "";
573
+ if (d) {
574
+ const T = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
575
+ b = M({
575
576
  className: `${h}:hover`,
576
577
  styles: {
577
- ...C,
578
- transition: `all ${g.duration}s ${K(
579
- g.easing
578
+ ...T,
579
+ transition: `all ${d.duration}s ${Q(
580
+ d.easing
580
581
  )}`,
581
- transitionDelay: g.delay ? `${g.delay}s` : "0s"
582
+ transitionDelay: d.delay ? `${d.delay}s` : "0s"
582
583
  }
583
584
  }) || "";
584
585
  }
585
586
  return [
586
- m,
587
- u,
587
+ g,
588
+ f,
588
589
  k,
589
- v
590
+ b
590
591
  ].join(" ");
591
592
  }
592
- return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
593
- J,
593
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
594
+ H,
594
595
  {
595
596
  id: "builderio-block",
596
597
  styles: n(),
@@ -598,10 +599,10 @@ function Wt(e) {
598
599
  }
599
600
  ) }) : null });
600
601
  }
601
- function Nt(e) {
602
+ function $t(e) {
602
603
  return e.charAt(0).toUpperCase() + e.slice(1);
603
604
  }
604
- const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => D({
605
+ const Dt = (e) => `on${$t(e)}`, Ft = (e, t) => (n) => O({
605
606
  code: e,
606
607
  context: t.context,
607
608
  localState: t.localState,
@@ -610,24 +611,24 @@ const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => D({
610
611
  event: n,
611
612
  isExpression: !1
612
613
  });
613
- function Ue(e) {
614
+ function _e(e) {
614
615
  var i;
615
616
  const t = {}, n = (i = e.block.actions) != null ? i : {};
616
- for (const o in n) {
617
- if (!n.hasOwnProperty(o))
617
+ for (const a in n) {
618
+ if (!n.hasOwnProperty(a))
618
619
  continue;
619
- const r = n[o];
620
- let a = Ft(o);
620
+ const r = n[a];
621
+ let o = Dt(a);
621
622
  if (e.stripPrefix)
622
- switch ($) {
623
+ switch (F) {
623
624
  case "vue":
624
- a = a.replace("v-on:", "");
625
+ o = o.replace("v-on:", "");
625
626
  break;
626
627
  case "svelte":
627
- a = a.replace("on:", "");
628
+ o = o.replace("on:", "");
628
629
  break;
629
630
  }
630
- t[a] = $t(r, e);
631
+ t[o] = Ft(r, e);
631
632
  }
632
633
  return t;
633
634
  }
@@ -636,7 +637,7 @@ function Lt({
636
637
  }) {
637
638
  return e;
638
639
  }
639
- const Dt = (e) => ({
640
+ const Ot = (e) => ({
640
641
  href: e.href
641
642
  });
642
643
  function ce({
@@ -645,14 +646,14 @@ function ce({
645
646
  }) {
646
647
  var i;
647
648
  const n = {
648
- ...Dt(e),
649
+ ...Ot(e),
649
650
  ...e.properties,
650
651
  "builder-id": e.id,
651
- style: wt({
652
+ style: Et({
652
653
  block: e,
653
654
  context: t
654
655
  }),
655
- [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
656
+ [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
656
657
  };
657
658
  return Lt({
658
659
  properties: n,
@@ -660,7 +661,7 @@ function ce({
660
661
  block: e
661
662
  });
662
663
  }
663
- function Ot(e) {
664
+ function Ut(e) {
664
665
  return /* @__PURE__ */ s(
665
666
  le,
666
667
  {
@@ -669,7 +670,7 @@ function Ot(e) {
669
670
  block: e.block,
670
671
  context: e.context
671
672
  }),
672
- actionAttributes: Ue({
673
+ actionAttributes: _e({
673
674
  block: e.block,
674
675
  rootState: e.context.rootState,
675
676
  rootSetState: e.context.rootSetState,
@@ -681,18 +682,18 @@ function Ot(e) {
681
682
  }
682
683
  );
683
684
  }
684
- function Ut(e) {
685
+ function _t(e) {
685
686
  return A(() => {
686
- }, []), /* @__PURE__ */ s(E, { children: e.children });
687
+ }, []), /* @__PURE__ */ s(R, { children: e.children });
687
688
  }
688
- function _t(e) {
689
+ function qt(e) {
689
690
  function t() {
690
691
  return e.includeBlockProps ? {
691
692
  ...ce({
692
693
  block: e.block,
693
694
  context: e.context
694
695
  }),
695
- ...Ue({
696
+ ..._e({
696
697
  block: e.block,
697
698
  rootState: e.context.rootState,
698
699
  rootSetState: e.context.rootSetState,
@@ -701,8 +702,8 @@ function _t(e) {
701
702
  })
702
703
  } : {};
703
704
  }
704
- return /* @__PURE__ */ s(E, { children: e.Wrapper.load ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
705
- Ut,
705
+ return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
706
+ _t,
706
707
  {
707
708
  load: e.Wrapper.load,
708
709
  fallback: e.Wrapper.fallback,
@@ -717,9 +718,9 @@ const Ht = ({
717
718
  builderBlock: t,
718
719
  context: n,
719
720
  componentRef: i,
720
- includeBlockProps: o,
721
+ includeBlockProps: a,
721
722
  isInteractive: r,
722
- contextValue: a
723
+ contextValue: o
723
724
  }) => {
724
725
  const l = {
725
726
  ...e,
@@ -727,10 +728,10 @@ const Ht = ({
727
728
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
728
729
  * component itself directly. Otherwise, they are provided to the wrapper element.
729
730
  */
730
- ...o ? {
731
+ ...a ? {
731
732
  attributes: ce({
732
733
  block: t,
733
- context: a
734
+ context: o
734
735
  })
735
736
  } : {}
736
737
  };
@@ -739,15 +740,15 @@ const Ht = ({
739
740
  block: t,
740
741
  context: n,
741
742
  wrapperProps: e,
742
- includeBlockProps: o
743
+ includeBlockProps: a
743
744
  } : l;
744
745
  };
745
- function ge(e) {
746
+ function be(e) {
746
747
  var i;
747
- const [t, n] = R(
748
- () => e.isInteractive ? _t : e.componentRef
748
+ const [t, n] = E(
749
+ () => e.isInteractive ? qt : e.componentRef
749
750
  );
750
- return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
751
+ return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
751
752
  t,
752
753
  {
753
754
  ...Ht({
@@ -760,23 +761,23 @@ function ge(e) {
760
761
  isInteractive: e.isInteractive,
761
762
  contextValue: e.context
762
763
  }),
763
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
764
- G,
764
+ children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
765
+ Y,
765
766
  {
766
- block: o,
767
+ block: a,
767
768
  context: e.context,
768
769
  registeredComponents: e.registeredComponents,
769
770
  linkComponent: e.linkComponent
770
771
  },
771
- o.id
772
+ a.id
772
773
  ))
773
774
  }
774
775
  ) }) : null });
775
776
  }
776
- function be(e) {
777
- const [t, n] = R(() => e.repeatContext);
777
+ function pe(e) {
778
+ const [t, n] = E(() => e.repeatContext);
778
779
  return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
779
- G,
780
+ Y,
780
781
  {
781
782
  block: e.block,
782
783
  context: t,
@@ -785,63 +786,63 @@ function be(e) {
785
786
  }
786
787
  ) });
787
788
  }
788
- function G(e) {
789
- var h, m, u, k;
789
+ function Y(e) {
790
+ var h, g, f, k;
790
791
  function t() {
791
- return Rt({
792
+ return Pt({
792
793
  block: e.block,
793
794
  context: e.context
794
795
  });
795
796
  }
796
- const [n, i] = R(() => ({
797
+ const [n, i] = E(() => ({
797
798
  value: null,
798
799
  update: !1
799
800
  }));
800
- function o() {
801
- var v;
802
- if (n.value && !n.update && !ae())
801
+ function a() {
802
+ var b;
803
+ if (n.value && !n.update && !G())
803
804
  return n.value;
804
- const g = (v = e.block.repeat) != null && v.collection ? e.block : xt({
805
+ const d = (b = e.block.repeat) != null && b.collection ? e.block : xt({
805
806
  block: e.block,
806
807
  localState: e.context.localState,
807
808
  rootState: e.context.rootState,
808
809
  rootSetState: e.context.rootSetState,
809
810
  context: e.context.context
810
811
  });
811
- return n.value = g, n.update = !1, g;
812
+ return n.value = d, n.update = !1, d;
812
813
  }
813
814
  function r() {
814
- return Et({
815
- block: o(),
815
+ return Rt({
816
+ block: a(),
816
817
  registeredComponents: e.registeredComponents,
817
818
  model: e.context.model
818
819
  });
819
820
  }
820
- function a() {
821
- var v;
822
- return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
821
+ function o() {
822
+ var b;
823
+ return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
823
824
  }
824
825
  function l() {
825
- var y, b;
826
- if ((y = e.block.repeat) != null && y.collection)
827
- return !!((b = t == null ? void 0 : t()) != null && b.length);
828
- const g = "hide" in o() ? o().hide : !1;
829
- return ("show" in o() ? o().show : !0) && !g;
830
- }
831
- function d() {
832
826
  var v, y;
833
- return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (y = o().children) != null ? y : [] : [];
827
+ if ((v = e.block.repeat) != null && v.collection)
828
+ return !!((y = t == null ? void 0 : t()) != null && y.length);
829
+ const d = "hide" in a() ? a().hide : !1;
830
+ return ("show" in a() ? a().show : !0) && !d;
831
+ }
832
+ function u() {
833
+ var b, v;
834
+ return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (v = a().children) != null ? v : [] : [];
834
835
  }
835
836
  function c() {
836
- var g, v, y, b;
837
+ var d, b, v, y;
837
838
  return {
838
- blockChildren: (g = o().children) != null ? g : [],
839
- componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
839
+ blockChildren: (d = a().children) != null ? d : [],
840
+ componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
840
841
  componentOptions: {
841
- ...dt(o(), e.context),
842
- ...Vt(r(), o()),
843
- ...At(r(), e.context),
844
- ...Pt(r(), e.linkComponent),
842
+ ...dt(a(), e.context),
843
+ ...At(r(), a()),
844
+ ...Nt(r(), e.context),
845
+ ...Vt(r(), e.linkComponent),
845
846
  ...Bt(
846
847
  r(),
847
848
  e.registeredComponents,
@@ -851,34 +852,34 @@ function G(e) {
851
852
  context: e.context,
852
853
  linkComponent: e.linkComponent,
853
854
  registeredComponents: e.registeredComponents,
854
- builderBlock: o(),
855
- includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
856
- isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && $ === "rsc")
855
+ builderBlock: a(),
856
+ includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
857
+ isInteractive: !((y = r == null ? void 0 : r()) != null && y.isRSC && F === "rsc")
857
858
  };
858
859
  }
859
860
  return A(() => {
860
- const g = o().id, v = o().animations;
861
- v && g && St(
862
- v.map((y) => ({
863
- ...y,
864
- elementId: g
861
+ const d = a().id, b = a().animations;
862
+ b && d && kt(
863
+ b.map((v) => ({
864
+ ...v,
865
+ elementId: d
865
866
  }))
866
867
  );
867
868
  }, []), A(() => {
868
869
  n.update = !0;
869
- }), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
870
- /* @__PURE__ */ s(Wt, { block: o(), context: e.context }),
871
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(E, { children: (k = t()) == null ? void 0 : k.map((g, v) => /* @__PURE__ */ s(
872
- be,
870
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
871
+ /* @__PURE__ */ s(Wt, { block: a(), context: e.context }),
872
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((d, b) => /* @__PURE__ */ s(
873
+ pe,
873
874
  {
874
- repeatContext: g.context,
875
- block: g.block,
875
+ repeatContext: d.context,
876
+ block: d.block,
876
877
  registeredComponents: e.registeredComponents,
877
878
  linkComponent: e.linkComponent
878
879
  },
879
- v
880
+ b
880
881
  )) }) : /* @__PURE__ */ s(
881
- ge,
882
+ be,
882
883
  {
883
884
  componentRef: c().componentRef,
884
885
  componentOptions: c().componentOptions,
@@ -890,24 +891,24 @@ function G(e) {
890
891
  includeBlockProps: c().includeBlockProps,
891
892
  isInteractive: c().isInteractive
892
893
  }
893
- ) : /* @__PURE__ */ s(E, { children: t() ? /* @__PURE__ */ s(E, { children: (u = t()) == null ? void 0 : u.map((g, v) => /* @__PURE__ */ s(
894
- be,
894
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (f = t()) == null ? void 0 : f.map((d, b) => /* @__PURE__ */ s(
895
+ pe,
895
896
  {
896
- repeatContext: g.context,
897
- block: g.block,
897
+ repeatContext: d.context,
898
+ block: d.block,
898
899
  registeredComponents: e.registeredComponents,
899
900
  linkComponent: e.linkComponent
900
901
  },
901
- v
902
- )) }) : /* @__PURE__ */ B(
903
- Ot,
902
+ b
903
+ )) }) : /* @__PURE__ */ V(
904
+ Ut,
904
905
  {
905
- Wrapper: a(),
906
- block: o(),
906
+ Wrapper: o(),
907
+ block: a(),
907
908
  context: e.context,
908
909
  children: [
909
910
  /* @__PURE__ */ s(
910
- ge,
911
+ be,
911
912
  {
912
913
  componentRef: c().componentRef,
913
914
  componentOptions: c().componentOptions,
@@ -920,40 +921,40 @@ function G(e) {
920
921
  isInteractive: c().isInteractive
921
922
  }
922
923
  ),
923
- (m = d()) == null ? void 0 : m.map((g) => /* @__PURE__ */ s(
924
- G,
924
+ (g = u()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
925
+ Y,
925
926
  {
926
- block: g,
927
+ block: d,
927
928
  registeredComponents: e.registeredComponents,
928
929
  linkComponent: e.linkComponent,
929
930
  context: e.context
930
931
  },
931
- g.id
932
+ d.id
932
933
  ))
933
934
  ]
934
935
  }
935
936
  ) })
936
937
  ] }) : null });
937
938
  }
938
- function Mt(e) {
939
- const t = L(null);
939
+ function jt(e) {
940
+ const t = D(null);
940
941
  function n() {
941
- var a;
942
+ var o;
942
943
  return [
943
944
  "builder-blocks",
944
- (a = e.blocks) != null && a.length ? "" : "no-blocks",
945
+ (o = e.blocks) != null && o.length ? "" : "no-blocks",
945
946
  e.classNameProp
946
947
  ].filter(Boolean).join(" ");
947
948
  }
948
949
  function i() {
949
950
  if (!e.path)
950
951
  return;
951
- const a = "component.options.";
952
- return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
952
+ const o = "this.", l = "component.options.";
953
+ return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
953
954
  }
954
- function o() {
955
- var a, l;
956
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
955
+ function a() {
956
+ var o, l;
957
+ W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
957
958
  {
958
959
  type: "builder.clickEmptyBlocks",
959
960
  data: {
@@ -965,8 +966,8 @@ function Mt(e) {
965
966
  ));
966
967
  }
967
968
  function r() {
968
- var a, l;
969
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
969
+ var o, l;
970
+ W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
970
971
  {
971
972
  type: "builder.hoverEmptyBlocks",
972
973
  data: {
@@ -978,34 +979,34 @@ function Mt(e) {
978
979
  ));
979
980
  }
980
981
  return A(() => {
981
- }, []), /* @__PURE__ */ B(E, { children: [
982
+ }, []), /* @__PURE__ */ V(R, { children: [
982
983
  /* @__PURE__ */ s(
983
984
  e.BlocksWrapper,
984
985
  {
985
986
  ref: t,
986
- className: n() + " props-blocks-wrapper-2c6a6d88",
987
+ className: n() + " props-blocks-wrapper-2936bbfc",
987
988
  "builder-path": i(),
988
989
  "builder-parent-id": e.parent,
989
990
  style: e.styleProp,
990
- onClick: (a) => o(),
991
- onMouseEnter: (a) => r(),
992
- onKeyPress: (a) => o(),
991
+ onClick: (o) => a(),
992
+ onMouseEnter: (o) => r(),
993
+ onKeyPress: (o) => a(),
993
994
  ...e.BlocksWrapperProps,
994
995
  children: e.children
995
996
  }
996
997
  ),
997
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2c6a6d88 {
998
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2936bbfc {
998
999
  display: flex;
999
1000
  flex-direction: column;
1000
1001
  align-items: stretch;
1001
1002
  }` })
1002
1003
  ] });
1003
1004
  }
1004
- function F(e) {
1005
- var i, o, r;
1006
- const t = fe(se), n = fe(Pe);
1005
+ function $(e) {
1006
+ var i, a, r;
1007
+ const t = he(se), n = he(Ve);
1007
1008
  return /* @__PURE__ */ s(
1008
- Mt,
1009
+ jt,
1009
1010
  {
1010
1011
  blocks: e.blocks,
1011
1012
  parent: e.parent,
@@ -1013,23 +1014,23 @@ function F(e) {
1013
1014
  styleProp: e.styleProp,
1014
1015
  classNameProp: e.className,
1015
1016
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1016
- BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1017
- children: e.blocks ? /* @__PURE__ */ s(E, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1018
- G,
1017
+ BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1018
+ children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1019
+ Y,
1019
1020
  {
1020
- block: a,
1021
+ block: o,
1021
1022
  linkComponent: e.linkComponent,
1022
1023
  context: e.context || t,
1023
1024
  registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1024
1025
  },
1025
- a.id
1026
+ o.id
1026
1027
  )) }) : null
1027
1028
  }
1028
1029
  );
1029
1030
  }
1030
- const jt = (e) => `builder-columns ${e}-breakpoints`;
1031
- function qt(e) {
1032
- var v, y;
1031
+ const Mt = (e) => `builder-columns ${e}-breakpoints`;
1032
+ function zt(e) {
1033
+ var b, v;
1033
1034
  function t() {
1034
1035
  return typeof e.space == "number" ? e.space || 0 : 20;
1035
1036
  }
@@ -1039,28 +1040,28 @@ function qt(e) {
1039
1040
  function i() {
1040
1041
  return e.stackColumnsAt || "tablet";
1041
1042
  }
1042
- function o(b) {
1043
- return b.link ? e.builderLinkComponent || "a" : "div";
1043
+ function a(y) {
1044
+ return y.link ? e.builderLinkComponent || "a" : "div";
1044
1045
  }
1045
- function r(b) {
1046
- var p;
1047
- return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
1046
+ function r(y) {
1047
+ var x;
1048
+ return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1048
1049
  }
1049
- function a(b) {
1050
- const p = r(b), C = t() * (n().length - 1) * (p / 100);
1051
- return `calc(${p}% - ${C}px)`;
1050
+ function o(y) {
1051
+ const x = r(y), T = t() * (n().length - 1) * (x / 100);
1052
+ return `calc(${x}% - ${T}px)`;
1052
1053
  }
1053
1054
  function l({
1054
- stackedStyle: b,
1055
- desktopStyle: p
1055
+ stackedStyle: y,
1056
+ desktopStyle: x
1056
1057
  }) {
1057
- return i() === "tablet" ? b : p;
1058
+ return i() === "tablet" ? y : x;
1058
1059
  }
1059
- function d({
1060
- stackedStyle: b,
1061
- desktopStyle: p
1060
+ function u({
1061
+ stackedStyle: y,
1062
+ desktopStyle: x
1062
1063
  }) {
1063
- return i() === "never" ? p : b;
1064
+ return i() === "never" ? x : y;
1064
1065
  }
1065
1066
  function c() {
1066
1067
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1074,114 +1075,114 @@ function qt(e) {
1074
1075
  })
1075
1076
  };
1076
1077
  }
1077
- function m(b) {
1078
- const p = b === 0 ? 0 : t(), C = a(b), P = `${p}px`, I = "100%", w = 0;
1078
+ function g(y) {
1079
+ const x = y === 0 ? 0 : t(), T = o(y), P = `${x}px`, I = "100%", S = 0;
1079
1080
  return {
1080
1081
  ...{
1081
1082
  display: "flex",
1082
1083
  flexDirection: "column",
1083
1084
  alignItems: "stretch"
1084
1085
  },
1085
- width: C,
1086
+ width: T,
1086
1087
  ["marginLeft"]: P,
1087
- "--column-width-mobile": d({
1088
+ "--column-width-mobile": u({
1088
1089
  stackedStyle: I,
1089
- desktopStyle: C
1090
+ desktopStyle: T
1090
1091
  }),
1091
- "--column-margin-left-mobile": d({
1092
- stackedStyle: w,
1092
+ "--column-margin-left-mobile": u({
1093
+ stackedStyle: S,
1093
1094
  desktopStyle: P
1094
1095
  }),
1095
1096
  "--column-width-tablet": l({
1096
1097
  stackedStyle: I,
1097
- desktopStyle: C
1098
+ desktopStyle: T
1098
1099
  }),
1099
1100
  "--column-margin-left-tablet": l({
1100
- stackedStyle: w,
1101
+ stackedStyle: S,
1101
1102
  desktopStyle: P
1102
1103
  })
1103
1104
  };
1104
1105
  }
1105
- function u(b) {
1106
- var C, P;
1107
- return Oe(
1108
- ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1109
- )[b].max;
1106
+ function f(y) {
1107
+ var T, P;
1108
+ return Ue(
1109
+ ((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
1110
+ )[y].max;
1110
1111
  }
1111
1112
  function k() {
1112
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1113
+ const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1113
1114
  return `
1114
- @media (max-width: ${u("medium")}px) {
1115
+ @media (max-width: ${f("medium")}px) {
1115
1116
  .${e.builderBlock.id}-breakpoints {
1116
1117
  flex-direction: var(--flex-dir-tablet);
1117
1118
  align-items: stretch;
1118
1119
  }
1119
1120
 
1120
- ${b} {
1121
+ ${y} {
1121
1122
  width: var(--column-width-tablet) !important;
1122
1123
  margin-left: var(--column-margin-left-tablet) !important;
1123
1124
  }
1124
1125
  }
1125
1126
 
1126
- @media (max-width: ${u("small")}px) {
1127
+ @media (max-width: ${f("small")}px) {
1127
1128
  .${e.builderBlock.id}-breakpoints {
1128
1129
  flex-direction: var(--flex-dir);
1129
1130
  align-items: stretch;
1130
1131
  }
1131
1132
 
1132
- ${b} {
1133
+ ${y} {
1133
1134
  width: var(--column-width-mobile) !important;
1134
1135
  margin-left: var(--column-margin-left-mobile) !important;
1135
1136
  }
1136
1137
  },
1137
1138
  `;
1138
1139
  }
1139
- function g(b, p) {
1140
+ function d(y, x) {
1140
1141
  return {
1141
- ...b.link ? {
1142
- href: b.link
1142
+ ...y.link ? {
1143
+ href: y.link
1143
1144
  } : {},
1144
- [U()]: "builder-column",
1145
- style: $e(m(p))
1145
+ [q()]: "builder-column",
1146
+ style: Fe(g(x))
1146
1147
  };
1147
1148
  }
1148
- return /* @__PURE__ */ B(E, { children: [
1149
- /* @__PURE__ */ B(
1149
+ return /* @__PURE__ */ V(R, { children: [
1150
+ /* @__PURE__ */ V(
1150
1151
  "div",
1151
1152
  {
1152
- className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-a6f3faac",
1153
+ className: Mt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1153
1154
  style: h(),
1154
1155
  children: [
1155
1156
  /* @__PURE__ */ s(
1156
- J,
1157
+ H,
1157
1158
  {
1158
1159
  id: "builderio-columns",
1159
1160
  styles: k(),
1160
1161
  nonce: e.builderContext.nonce
1161
1162
  }
1162
1163
  ),
1163
- (y = e.columns) == null ? void 0 : y.map((b, p) => /* @__PURE__ */ s(
1164
+ (v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
1164
1165
  le,
1165
1166
  {
1166
- TagName: o(b),
1167
+ TagName: a(y),
1167
1168
  actionAttributes: {},
1168
- attributes: g(b, p),
1169
+ attributes: d(y, x),
1169
1170
  children: /* @__PURE__ */ s(
1170
- F,
1171
+ $,
1171
1172
  {
1172
- path: `columns.${p}.blocks`,
1173
+ path: `columns.${x}.blocks`,
1173
1174
  parent: e.builderBlock.id,
1174
1175
  context: e.builderContext,
1175
1176
  registeredComponents: e.builderComponents,
1176
1177
  linkComponent: e.builderLinkComponent,
1177
- blocks: b.blocks,
1178
+ blocks: y.blocks,
1178
1179
  styleProp: {
1179
1180
  flexGrow: "1"
1180
1181
  }
1181
1182
  }
1182
1183
  )
1183
1184
  },
1184
- p
1185
+ x
1185
1186
  ))
1186
1187
  ]
1187
1188
  }
@@ -1192,55 +1193,55 @@ function qt(e) {
1192
1193
  }` })
1193
1194
  ] });
1194
1195
  }
1195
- function zt(e) {
1196
+ function Kt(e) {
1196
1197
  return /* @__PURE__ */ s("span", { children: e.children });
1197
1198
  }
1198
- function pe(e) {
1199
+ function ye(e) {
1199
1200
  return e.replace(/http(s)?:/, "");
1200
1201
  }
1201
- function Kt(e = "", t, n) {
1202
- const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1203
- return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1202
+ function Jt(e = "", t, n) {
1203
+ const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1204
+ return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1204
1205
  }
1205
- function Jt(e, t) {
1206
+ function Gt(e, t) {
1206
1207
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1207
1208
  return e;
1208
1209
  if (t === "master")
1209
- return pe(e);
1210
+ return ye(e);
1210
1211
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1211
1212
  if (n) {
1212
- const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1213
- return pe(`${i[0]}_${r}${o}`);
1213
+ const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1214
+ return ye(`${i[0]}_${r}${a}`);
1214
1215
  }
1215
1216
  return null;
1216
1217
  }
1217
- function Y(e) {
1218
+ function X(e) {
1218
1219
  if (!e)
1219
1220
  return e;
1220
1221
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1221
1222
  if (e.match(/builder\.io/)) {
1222
1223
  let n = e;
1223
1224
  const i = Number(e.split("?width=")[1]);
1224
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1225
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Jt(e, "width", a)} ${a}w`).concat([n]).join(", ");
1225
1226
  }
1226
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1227
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1227
1228
  }
1228
- function Gt(e) {
1229
- var o, r, a, l, d, c;
1229
+ function Qt(e) {
1230
+ var a, r, o, l, u, c;
1230
1231
  function t() {
1231
- var u;
1232
- const m = e.image || e.src;
1233
- if (!m || // We can auto add srcset for cdn.builder.io and shopify
1232
+ var f;
1233
+ const g = e.image || e.src;
1234
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1234
1235
  // images, otherwise you can supply this prop manually
1235
- !(typeof m == "string" && (m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/))))
1236
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1236
1237
  return e.srcset;
1237
1238
  if (!e.noWebp) {
1238
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1239
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1239
1240
  if (!e.srcset.includes(e.image.split("?")[0]))
1240
- return console.debug("Removed given srcset"), Y(m);
1241
+ return console.debug("Removed given srcset"), X(g);
1241
1242
  } else if (e.image && !e.srcset)
1242
- return Y(m);
1243
- return Y(m);
1243
+ return X(g);
1244
+ return X(g);
1244
1245
  }
1245
1246
  }
1246
1247
  function n() {
@@ -1257,9 +1258,9 @@ function Gt(e) {
1257
1258
  };
1258
1259
  return e.aspectRatio ? h : void 0;
1259
1260
  }
1260
- return /* @__PURE__ */ B(E, { children: [
1261
- /* @__PURE__ */ B(E, { children: [
1262
- /* @__PURE__ */ B("picture", { children: [
1261
+ return /* @__PURE__ */ V(R, { children: [
1262
+ /* @__PURE__ */ V(R, { children: [
1263
+ /* @__PURE__ */ V("picture", { children: [
1263
1264
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1264
1265
  /* @__PURE__ */ s(
1265
1266
  "img",
@@ -1280,7 +1281,7 @@ function Gt(e) {
1280
1281
  }
1281
1282
  )
1282
1283
  ] }),
1283
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1284
+ e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1284
1285
  "div",
1285
1286
  {
1286
1287
  className: "builder-image-sizer div-9dac2184",
@@ -1289,8 +1290,8 @@ function Gt(e) {
1289
1290
  }
1290
1291
  }
1291
1292
  ) : null,
1292
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1293
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1293
+ (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1294
+ !e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
1294
1295
  ] }),
1295
1296
  /* @__PURE__ */ s("style", { children: `.img-9dac2184 {
1296
1297
  opacity: 1;
@@ -1332,7 +1333,7 @@ function Yt(e) {
1332
1333
  }
1333
1334
  );
1334
1335
  }
1335
- const Q = {
1336
+ const Z = {
1336
1337
  "@type": "@builder.io/sdk:Element",
1337
1338
  layerName: "Accordion item title",
1338
1339
  responsiveStyles: {
@@ -1361,7 +1362,7 @@ const Q = {
1361
1362
  }
1362
1363
  }
1363
1364
  }]
1364
- }, X = {
1365
+ }, ee = {
1365
1366
  "@type": "@builder.io/sdk:Element",
1366
1367
  layerName: "Accordion item detail",
1367
1368
  responsiveStyles: {
@@ -1392,7 +1393,7 @@ const Q = {
1392
1393
  }
1393
1394
  }
1394
1395
  }]
1395
- }, Qt = {
1396
+ }, Xt = {
1396
1397
  name: "Builder:Accordion",
1397
1398
  canHaveChildren: !0,
1398
1399
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1409,19 +1410,19 @@ const Q = {
1409
1410
  name: "title",
1410
1411
  type: "uiBlocks",
1411
1412
  hideFromUI: !0,
1412
- defaultValue: [Q]
1413
+ defaultValue: [Z]
1413
1414
  }, {
1414
1415
  name: "detail",
1415
1416
  type: "uiBlocks",
1416
1417
  hideFromUI: !0,
1417
- defaultValue: [X]
1418
+ defaultValue: [ee]
1418
1419
  }],
1419
1420
  defaultValue: [{
1420
- title: [Q],
1421
- detail: [X]
1421
+ title: [Z],
1422
+ detail: [ee]
1422
1423
  }, {
1423
- title: [Q],
1424
- detail: [X]
1424
+ title: [Z],
1425
+ detail: [ee]
1425
1426
  }],
1426
1427
  showIf: (e) => !e.get("useChildrenForItems")
1427
1428
  }, {
@@ -1456,14 +1457,14 @@ const Q = {
1456
1457
  builderComponents: !0,
1457
1458
  builderLinkComponent: !0
1458
1459
  }
1459
- }, ye = (e) => e.toString();
1460
- function Xt(e) {
1461
- var m;
1462
- const [t, n] = R(() => []);
1460
+ }, ve = (e) => e.toString();
1461
+ function Zt(e) {
1462
+ var g;
1463
+ const [t, n] = E(() => []);
1463
1464
  function i() {
1464
1465
  return !!(e.grid || e.oneAtATime);
1465
1466
  }
1466
- function o() {
1467
+ function a() {
1467
1468
  return {
1468
1469
  display: "flex",
1469
1470
  alignItems: "stretch",
@@ -1485,74 +1486,74 @@ function Xt(e) {
1485
1486
  cursor: "pointer"
1486
1487
  };
1487
1488
  return Object.fromEntries(
1488
- Object.entries(k).filter(([g, v]) => v !== void 0)
1489
+ Object.entries(k).filter(([d, b]) => b !== void 0)
1489
1490
  );
1490
1491
  }
1491
- function a(u) {
1492
- return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1492
+ function o(f) {
1493
+ return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
1493
1494
  }
1494
- function l(u) {
1495
- return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1495
+ function l(f) {
1496
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
1496
1497
  }
1497
- function d() {
1498
- let u = null;
1498
+ function u() {
1499
+ let f = null;
1499
1500
  if (e.grid && t.length && document) {
1500
- const g = t[0];
1501
- let y = document.querySelector(
1502
- `.builder-accordion-title[data-index="${g}"]`
1501
+ const d = t[0];
1502
+ let v = document.querySelector(
1503
+ `.builder-accordion-title[data-index="${d}"]`
1503
1504
  );
1504
- if (u = g, y) {
1505
- let b = y.getBoundingClientRect();
1506
- for (; y = y && y.nextElementSibling; )
1507
- if (y) {
1508
- if (y.classList.contains("builder-accordion-detail"))
1505
+ if (f = d, v) {
1506
+ let y = v.getBoundingClientRect();
1507
+ for (; v = v && v.nextElementSibling; )
1508
+ if (v) {
1509
+ if (v.classList.contains("builder-accordion-detail"))
1509
1510
  continue;
1510
- const p = y.getBoundingClientRect();
1511
- if (p.left > b.left) {
1512
- const C = parseInt(
1513
- y.getAttribute("data-index") || "",
1511
+ const x = v.getBoundingClientRect();
1512
+ if (x.left > y.left) {
1513
+ const T = parseInt(
1514
+ v.getAttribute("data-index") || "",
1514
1515
  10
1515
1516
  );
1516
- isNaN(C) || (b = p, u = C);
1517
+ isNaN(T) || (y = x, f = T);
1517
1518
  } else
1518
1519
  break;
1519
1520
  }
1520
1521
  }
1521
1522
  }
1522
- return typeof u == "number" && (u = u + 1), u;
1523
+ return typeof f == "number" && (f = f + 1), f;
1523
1524
  }
1524
1525
  function c() {
1525
- const u = {
1526
- order: typeof d() == "number" ? d() : void 0,
1526
+ const f = {
1527
+ order: typeof u() == "number" ? u() : void 0,
1527
1528
  ...e.grid && {
1528
1529
  width: "100%"
1529
1530
  }
1530
1531
  };
1531
1532
  return Object.fromEntries(
1532
- Object.entries(u).filter(([k, g]) => g !== void 0)
1533
+ Object.entries(f).filter(([k, d]) => d !== void 0)
1533
1534
  );
1534
1535
  }
1535
- function h(u) {
1536
- t.includes(u) ? n(i() ? [] : t.filter((k) => k !== u)) : n(i() ? [u] : t.concat(u));
1536
+ function h(f) {
1537
+ t.includes(f) ? n(i() ? [] : t.filter((k) => k !== f)) : n(i() ? [f] : t.concat(f));
1537
1538
  }
1538
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (m = e.items) == null ? void 0 : m.map((u, k) => /* @__PURE__ */ B(Ge.Fragment, { children: [
1539
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((f, k) => /* @__PURE__ */ V(Qe.Fragment, { children: [
1539
1540
  /* @__PURE__ */ s(
1540
1541
  "div",
1541
1542
  {
1542
- className: a(k),
1543
+ className: o(k),
1543
1544
  style: {
1544
1545
  ...r(),
1545
1546
  ...e.grid && {
1546
1547
  width: e.gridRowWidth,
1547
- order: d() !== null ? ye(k) : ye(k + 1)
1548
+ order: u() !== null ? ve(k) : ve(k + 1)
1548
1549
  }
1549
1550
  },
1550
1551
  "data-index": k,
1551
- onClick: (g) => h(k),
1552
+ onClick: (d) => h(k),
1552
1553
  children: /* @__PURE__ */ s(
1553
- F,
1554
+ $,
1554
1555
  {
1555
- blocks: u.title,
1556
+ blocks: f.title,
1556
1557
  path: `items.${k}.title`,
1557
1558
  parent: e.builderBlock.id,
1558
1559
  context: e.builderContext,
@@ -1568,9 +1569,9 @@ function Xt(e) {
1568
1569
  className: l(k),
1569
1570
  style: c(),
1570
1571
  children: /* @__PURE__ */ s(
1571
- F,
1572
+ $,
1572
1573
  {
1573
- blocks: u.detail,
1574
+ blocks: f.detail,
1574
1575
  path: `items.${k}.detail`,
1575
1576
  parent: e.builderBlock.id,
1576
1577
  context: e.builderContext,
@@ -1582,7 +1583,7 @@ function Xt(e) {
1582
1583
  ) : null
1583
1584
  ] }, k)) });
1584
1585
  }
1585
- const Zt = {
1586
+ const en = {
1586
1587
  name: "Core:Button",
1587
1588
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1588
1589
  defaultStyles: {
@@ -1618,7 +1619,7 @@ const Zt = {
1618
1619
  shouldReceiveBuilderProps: {
1619
1620
  builderLinkComponent: !0
1620
1621
  }
1621
- }, en = {
1622
+ }, tn = {
1622
1623
  // TODO: ways to statically preprocess JSON for references, functions, etc
1623
1624
  name: "Columns",
1624
1625
  isRSC: !0,
@@ -1797,7 +1798,7 @@ const Zt = {
1797
1798
  });
1798
1799
  }
1799
1800
  const n = e.get("columns");
1800
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1801
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
1801
1802
  }
1802
1803
  }, {
1803
1804
  name: "space",
@@ -1825,13 +1826,13 @@ const Zt = {
1825
1826
  builderComponents: !0,
1826
1827
  builderLinkComponent: !0
1827
1828
  }
1828
- }, tn = {
1829
+ }, nn = {
1829
1830
  name: "Fragment",
1830
1831
  static: !0,
1831
1832
  hidden: !0,
1832
1833
  canHaveChildren: !0,
1833
1834
  noWrap: !0
1834
- }, 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 = {
1835
+ }, 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"], on = {
1835
1836
  name: "Image",
1836
1837
  static: !0,
1837
1838
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1846,34 +1847,34 @@ const Zt = {
1846
1847
  name: "image",
1847
1848
  type: "file",
1848
1849
  bubble: !0,
1849
- allowedFileTypes: de,
1850
+ allowedFileTypes: ue,
1850
1851
  required: !0,
1851
1852
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1852
1853
  onChange: (e) => {
1853
1854
  e.delete("srcset"), e.delete("noWebp");
1854
- function n(a, l = 6e4) {
1855
- return new Promise((d, c) => {
1855
+ function n(o, l = 6e4) {
1856
+ return new Promise((u, c) => {
1856
1857
  const h = document.createElement("img");
1857
- let m = !1;
1858
+ let g = !1;
1858
1859
  h.onload = () => {
1859
- m = !0, d(h);
1860
- }, h.addEventListener("error", (u) => {
1861
- console.warn("Image load failed", u.error), c(u.error);
1862
- }), h.src = a, setTimeout(() => {
1863
- m || c(new Error("Image load timed out"));
1860
+ g = !0, u(h);
1861
+ }, h.addEventListener("error", (f) => {
1862
+ console.warn("Image load failed", f.error), c(f.error);
1863
+ }), h.src = o, setTimeout(() => {
1864
+ g || c(new Error("Image load timed out"));
1864
1865
  }, l);
1865
1866
  });
1866
1867
  }
1867
- function i(a) {
1868
- return Math.round(a * 1e3) / 1e3;
1868
+ function i(o) {
1869
+ return Math.round(o * 1e3) / 1e3;
1869
1870
  }
1870
- const o = e.get("image"), r = e.get("aspectRatio");
1871
- if (fetch(o).then((a) => a.blob()).then((a) => {
1872
- a.type.includes("svg") && e.set("noWebp", !0);
1873
- }), o && (!r || r === 0.7041))
1874
- return n(o).then((a) => {
1871
+ const a = e.get("image"), r = e.get("aspectRatio");
1872
+ if (fetch(a).then((o) => o.blob()).then((o) => {
1873
+ o.type.includes("svg") && e.set("noWebp", !0);
1874
+ }), a && (!r || r === 0.7041))
1875
+ return n(a).then((o) => {
1875
1876
  const l = e.get("aspectRatio");
1876
- e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1877
+ e.get("image") === a && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
1877
1878
  });
1878
1879
  }
1879
1880
  }, {
@@ -1939,7 +1940,426 @@ const Zt = {
1939
1940
  shouldReceiveBuilderProps: {
1940
1941
  builderBlock: !0
1941
1942
  }
1942
- }, an = {
1943
+ }, rn = {
1944
+ name: "PersonalizationContainer",
1945
+ shouldReceiveBuilderProps: {
1946
+ builderBlock: !0,
1947
+ builderContext: !0
1948
+ },
1949
+ noWrap: !0,
1950
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
1951
+ canHaveChildren: !0,
1952
+ inputs: [{
1953
+ name: "variants",
1954
+ defaultValue: [],
1955
+ behavior: "personalizationVariantList",
1956
+ type: "list",
1957
+ subFields: [{
1958
+ name: "name",
1959
+ type: "text"
1960
+ }, {
1961
+ name: "query",
1962
+ friendlyName: "Targeting rules",
1963
+ type: "BuilderQuery",
1964
+ defaultValue: []
1965
+ }, {
1966
+ name: "startDate",
1967
+ type: "date"
1968
+ }, {
1969
+ name: "endDate",
1970
+ type: "date"
1971
+ }, {
1972
+ name: "blocks",
1973
+ type: "uiBlocks",
1974
+ hideFromUI: !0,
1975
+ defaultValue: []
1976
+ }]
1977
+ }]
1978
+ };
1979
+ function J(e) {
1980
+ return /* @__PURE__ */ s(
1981
+ "script",
1982
+ {
1983
+ dangerouslySetInnerHTML: { __html: e.scriptStr },
1984
+ "data-id": e.id,
1985
+ nonce: e.nonce || ""
1986
+ }
1987
+ );
1988
+ }
1989
+ function ln(e, t, n, i) {
1990
+ function a(c) {
1991
+ return typeof c == "string";
1992
+ }
1993
+ function r(c) {
1994
+ return typeof c == "number";
1995
+ }
1996
+ function o(c, h) {
1997
+ return (() => {
1998
+ const f = h.property, k = h.operator;
1999
+ let d = h.value;
2000
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && k))
2001
+ return !0;
2002
+ if (Array.isArray(d))
2003
+ return k === "isNot" ? d.every((v) => o(c, {
2004
+ property: f,
2005
+ operator: k,
2006
+ value: v
2007
+ })) : !!d.find((v) => o(c, {
2008
+ property: f,
2009
+ operator: k,
2010
+ value: v
2011
+ }));
2012
+ const b = c[f];
2013
+ if (Array.isArray(b))
2014
+ return b.includes(d);
2015
+ switch (k) {
2016
+ case "is":
2017
+ return b === d;
2018
+ case "isNot":
2019
+ return b !== d;
2020
+ case "contains":
2021
+ return (a(b) || Array.isArray(b)) && b.includes(String(d));
2022
+ case "startsWith":
2023
+ return a(b) && b.startsWith(String(d));
2024
+ case "endsWith":
2025
+ return a(b) && b.endsWith(String(d));
2026
+ case "greaterThan":
2027
+ return r(b) && r(d) && b > d;
2028
+ case "lessThan":
2029
+ return r(b) && r(d) && b < d;
2030
+ case "greaterThanOrEqualTo":
2031
+ return r(b) && r(d) && b >= d;
2032
+ case "lessThanOrEqualTo":
2033
+ return r(b) && r(d) && b <= d;
2034
+ default:
2035
+ return !1;
2036
+ }
2037
+ })();
2038
+ }
2039
+ const l = {
2040
+ query: t,
2041
+ startDate: n,
2042
+ endDate: i
2043
+ }, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2044
+ 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) => o(e, c));
2045
+ }
2046
+ const sn = `function getPersonalizedVariant(variants, blockId, locale) {
2047
+ if (!navigator.cookieEnabled) {
2048
+ return;
2049
+ }
2050
+ function getCookie(name) {
2051
+ const nameEQ = name + '=';
2052
+ const ca = document.cookie.split(';');
2053
+ for (let i = 0; i < ca.length; i++) {
2054
+ let c = ca[i];
2055
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2056
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2057
+ }
2058
+ return null;
2059
+ }
2060
+ function removeVariants() {
2061
+ variants?.forEach(function (_, index) {
2062
+ document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
2063
+ });
2064
+ document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
2065
+ document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
2066
+ }
2067
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2068
+ if (locale) {
2069
+ attributes.locale = locale;
2070
+ }
2071
+ const winningVariantIndex = variants?.findIndex(function (variant) {
2072
+ return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2073
+ });
2074
+ const isDebug = location.href.includes('builder.debug=true');
2075
+ if (isDebug) {
2076
+ console.debug('PersonalizationContainer', {
2077
+ attributes,
2078
+ variants,
2079
+ winningVariantIndex
2080
+ });
2081
+ }
2082
+ if (winningVariantIndex !== -1) {
2083
+ const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
2084
+ if (winningVariant) {
2085
+ const parentNode = winningVariant.parentNode;
2086
+ if (parentNode) {
2087
+ const newParent = parentNode.cloneNode(false);
2088
+ newParent.appendChild(winningVariant.content.firstChild);
2089
+ newParent.appendChild(winningVariant.content.lastChild);
2090
+ parentNode.parentNode?.replaceChild(newParent, parentNode);
2091
+ }
2092
+ if (isDebug) {
2093
+ console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
2094
+ }
2095
+ }
2096
+ } else if (variants && variants.length > 0) {
2097
+ removeVariants();
2098
+ }
2099
+ }`, cn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2100
+ function isString(val) {
2101
+ return typeof val === 'string';
2102
+ }
2103
+ function isNumber(val) {
2104
+ return typeof val === 'number';
2105
+ }
2106
+ function objectMatchesQuery(userattr, query) {
2107
+ const result = (() => {
2108
+ const property = query.property;
2109
+ const operator = query.operator;
2110
+ let testValue = query.value;
2111
+ if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
2112
+ testValue = query.value.slice(0, -1);
2113
+ }
2114
+ if (!(property && operator)) {
2115
+ return true;
2116
+ }
2117
+ if (Array.isArray(testValue)) {
2118
+ if (operator === 'isNot') {
2119
+ return testValue.every(val => objectMatchesQuery(userattr, {
2120
+ property,
2121
+ operator,
2122
+ value: val
2123
+ }));
2124
+ }
2125
+ return !!testValue.find(val => objectMatchesQuery(userattr, {
2126
+ property,
2127
+ operator,
2128
+ value: val
2129
+ }));
2130
+ }
2131
+ const value = userattr[property];
2132
+ if (Array.isArray(value)) {
2133
+ return value.includes(testValue);
2134
+ }
2135
+ switch (operator) {
2136
+ case 'is':
2137
+ return value === testValue;
2138
+ case 'isNot':
2139
+ return value !== testValue;
2140
+ case 'contains':
2141
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
2142
+ case 'startsWith':
2143
+ return isString(value) && value.startsWith(String(testValue));
2144
+ case 'endsWith':
2145
+ return isString(value) && value.endsWith(String(testValue));
2146
+ case 'greaterThan':
2147
+ return isNumber(value) && isNumber(testValue) && value > testValue;
2148
+ case 'lessThan':
2149
+ return isNumber(value) && isNumber(testValue) && value < testValue;
2150
+ case 'greaterThanOrEqualTo':
2151
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
2152
+ case 'lessThanOrEqualTo':
2153
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
2154
+ default:
2155
+ return false;
2156
+ }
2157
+ })();
2158
+ return result;
2159
+ }
2160
+ const item = {
2161
+ query,
2162
+ startDate,
2163
+ endDate
2164
+ };
2165
+ const now = userAttributes.date && new Date(userAttributes.date) || new Date();
2166
+ if (item.startDate && new Date(item.startDate) > now) {
2167
+ return false;
2168
+ } else if (item.endDate && new Date(item.endDate) < now) {
2169
+ return false;
2170
+ }
2171
+ if (!item.query || !item.query.length) {
2172
+ return true;
2173
+ }
2174
+ return item.query.every(filter => {
2175
+ return objectMatchesQuery(userAttributes, filter);
2176
+ });
2177
+ }`;
2178
+ function un(e, t) {
2179
+ return !(!(e && e.length > 0) || !t || L());
2180
+ }
2181
+ function dn({
2182
+ variants: e,
2183
+ previewingIndex: t,
2184
+ isHydrated: n,
2185
+ filteredVariants: i,
2186
+ fallbackBlocks: a
2187
+ }) {
2188
+ var o;
2189
+ const r = {
2190
+ blocks: a != null ? a : [],
2191
+ path: "this.children"
2192
+ };
2193
+ if (n && W())
2194
+ return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
2195
+ blocks: e[t].blocks,
2196
+ path: `component.options.variants.${t}.blocks`
2197
+ } : r;
2198
+ if (L()) {
2199
+ const l = i == null ? void 0 : i[0];
2200
+ if (l)
2201
+ return {
2202
+ blocks: l.blocks,
2203
+ path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
2204
+ };
2205
+ }
2206
+ return r;
2207
+ }
2208
+ const mn = (e, t, n) => `
2209
+ (function() {
2210
+ ${cn}
2211
+ ${sn}
2212
+ getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2213
+ })();
2214
+ `;
2215
+ function fn(e) {
2216
+ var b, v, y, x, T, P, I;
2217
+ const t = D(null), [n, i] = E(
2218
+ () => de.getUserAttributes()
2219
+ ), [a, r] = E(
2220
+ () => {
2221
+ var S, m, p;
2222
+ return mn(
2223
+ e.variants,
2224
+ ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2225
+ (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2226
+ );
2227
+ }
2228
+ ), [o, l] = E(() => []), [u, c] = E(
2229
+ () => {
2230
+ var S;
2231
+ return un(
2232
+ e.variants,
2233
+ _((S = e.builderContext) == null ? void 0 : S.canTrack)
2234
+ );
2235
+ }
2236
+ ), [h, g] = E(() => !1);
2237
+ function f() {
2238
+ return (e.variants || []).filter((S) => {
2239
+ var m, p, C, w;
2240
+ return ln(
2241
+ {
2242
+ ...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
2243
+ locale: (w = (C = e.builderContext) == null ? void 0 : C.rootState) == null ? void 0 : w.locale
2244
+ } : {},
2245
+ ...n
2246
+ },
2247
+ S.query,
2248
+ S.startDate,
2249
+ S.endDate
2250
+ );
2251
+ });
2252
+ }
2253
+ function k() {
2254
+ var S;
2255
+ return dn({
2256
+ variants: e.variants,
2257
+ fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2258
+ isHydrated: h,
2259
+ filteredVariants: f(),
2260
+ previewingIndex: e.previewingIndex
2261
+ });
2262
+ }
2263
+ function d() {
2264
+ return (e.variants || []).map(
2265
+ (S, m) => {
2266
+ var p;
2267
+ return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2268
+ }
2269
+ ).join("");
2270
+ }
2271
+ return A(() => {
2272
+ var m;
2273
+ g(!0);
2274
+ const S = de.subscribeOnUserAttributesChange(
2275
+ (p) => {
2276
+ i(p);
2277
+ }
2278
+ );
2279
+ if (!(W() || G())) {
2280
+ const p = f()[0];
2281
+ t.current && (t.current.dispatchEvent(
2282
+ new CustomEvent("builder.variantLoaded", {
2283
+ detail: {
2284
+ variant: p || "default",
2285
+ content: (m = e.builderContext) == null ? void 0 : m.content
2286
+ },
2287
+ bubbles: !0
2288
+ })
2289
+ ), new IntersectionObserver((w) => {
2290
+ w.forEach((B) => {
2291
+ var N;
2292
+ B.isIntersecting && t.current && t.current.dispatchEvent(
2293
+ new CustomEvent("builder.variantDisplayed", {
2294
+ detail: {
2295
+ variant: p || "default",
2296
+ content: (N = e.builderContext) == null ? void 0 : N.content
2297
+ },
2298
+ bubbles: !0
2299
+ })
2300
+ );
2301
+ });
2302
+ }).observe(t.current));
2303
+ }
2304
+ o.push(S);
2305
+ }, []), A(() => () => {
2306
+ o.forEach((S) => S());
2307
+ }, []), /* @__PURE__ */ V(
2308
+ "div",
2309
+ {
2310
+ ref: t,
2311
+ ...e.attributes,
2312
+ className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2313
+ children: [
2314
+ u ? /* @__PURE__ */ V(R, { children: [
2315
+ (v = e.variants) == null ? void 0 : v.map((S, m) => {
2316
+ var p, C;
2317
+ return /* @__PURE__ */ s(
2318
+ "template",
2319
+ {
2320
+ "data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
2321
+ children: /* @__PURE__ */ s(
2322
+ $,
2323
+ {
2324
+ blocks: S.blocks,
2325
+ parent: (C = e.builderBlock) == null ? void 0 : C.id,
2326
+ path: `component.options.variants.${m}.blocks`
2327
+ }
2328
+ )
2329
+ },
2330
+ m
2331
+ );
2332
+ }),
2333
+ /* @__PURE__ */ s(
2334
+ H,
2335
+ {
2336
+ nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
2337
+ styles: d(),
2338
+ id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
2339
+ }
2340
+ ),
2341
+ /* @__PURE__ */ s(
2342
+ J,
2343
+ {
2344
+ nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2345
+ scriptStr: a,
2346
+ id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
2347
+ }
2348
+ )
2349
+ ] }) : null,
2350
+ /* @__PURE__ */ s(
2351
+ $,
2352
+ {
2353
+ blocks: k().blocks,
2354
+ parent: (I = e.builderBlock) == null ? void 0 : I.id,
2355
+ path: k().path
2356
+ }
2357
+ )
2358
+ ]
2359
+ }
2360
+ );
2361
+ }
2362
+ const hn = {
1943
2363
  name: "Core:Section",
1944
2364
  static: !0,
1945
2365
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1978,7 +2398,7 @@ const Zt = {
1978
2398
  }
1979
2399
  }
1980
2400
  }]
1981
- }, rn = {
2401
+ }, gn = {
1982
2402
  name: "Slot",
1983
2403
  isRSC: !0,
1984
2404
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1996,7 +2416,7 @@ const Zt = {
1996
2416
  builderComponents: !0
1997
2417
  }
1998
2418
  };
1999
- function ln(e) {
2419
+ function bn(e) {
2000
2420
  var t, n, i;
2001
2421
  return /* @__PURE__ */ s(
2002
2422
  "div",
@@ -2008,7 +2428,7 @@ function ln(e) {
2008
2428
  "builder-slot": e.name
2009
2429
  },
2010
2430
  children: /* @__PURE__ */ s(
2011
- F,
2431
+ $,
2012
2432
  {
2013
2433
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2014
2434
  path: `symbol.data.${e.name}`,
@@ -2020,7 +2440,7 @@ function ln(e) {
2020
2440
  }
2021
2441
  );
2022
2442
  }
2023
- const sn = {
2443
+ const pn = {
2024
2444
  name: "Symbol",
2025
2445
  noWrap: !0,
2026
2446
  static: !0,
@@ -2059,7 +2479,7 @@ const sn = {
2059
2479
  builderComponents: !0,
2060
2480
  builderLinkComponent: !0
2061
2481
  }
2062
- }, Z = {
2482
+ }, te = {
2063
2483
  "@type": "@builder.io/sdk:Element",
2064
2484
  responsiveStyles: {
2065
2485
  large: {
@@ -2081,7 +2501,7 @@ const sn = {
2081
2501
  text: "New tab"
2082
2502
  }
2083
2503
  }
2084
- }, ee = {
2504
+ }, ne = {
2085
2505
  "@type": "@builder.io/sdk:Element",
2086
2506
  responsiveStyles: {
2087
2507
  large: {
@@ -2097,7 +2517,7 @@ const sn = {
2097
2517
  text: "New tab content "
2098
2518
  }
2099
2519
  }
2100
- }, cn = {
2520
+ }, yn = {
2101
2521
  name: "Builder: Tabs",
2102
2522
  inputs: [{
2103
2523
  name: "tabs",
@@ -2107,16 +2527,16 @@ const sn = {
2107
2527
  name: "label",
2108
2528
  type: "uiBlocks",
2109
2529
  hideFromUI: !0,
2110
- defaultValue: [Z]
2530
+ defaultValue: [te]
2111
2531
  }, {
2112
2532
  name: "content",
2113
2533
  type: "uiBlocks",
2114
2534
  hideFromUI: !0,
2115
- defaultValue: [ee]
2535
+ defaultValue: [ne]
2116
2536
  }],
2117
2537
  defaultValue: [{
2118
2538
  label: [{
2119
- ...Z,
2539
+ ...te,
2120
2540
  component: {
2121
2541
  name: "Text",
2122
2542
  options: {
@@ -2125,7 +2545,7 @@ const sn = {
2125
2545
  }
2126
2546
  }],
2127
2547
  content: [{
2128
- ...ee,
2548
+ ...ne,
2129
2549
  component: {
2130
2550
  name: "Text",
2131
2551
  options: {
@@ -2135,7 +2555,7 @@ const sn = {
2135
2555
  }]
2136
2556
  }, {
2137
2557
  label: [{
2138
- ...Z,
2558
+ ...te,
2139
2559
  component: {
2140
2560
  name: "Text",
2141
2561
  options: {
@@ -2144,7 +2564,7 @@ const sn = {
2144
2564
  }
2145
2565
  }],
2146
2566
  content: [{
2147
- ...ee,
2567
+ ...ne,
2148
2568
  component: {
2149
2569
  name: "Text",
2150
2570
  options: {
@@ -2201,18 +2621,18 @@ const sn = {
2201
2621
  builderLinkComponent: !0
2202
2622
  }
2203
2623
  };
2204
- function dn(e) {
2624
+ function vn(e) {
2205
2625
  var r;
2206
- const [t, n] = R(
2626
+ const [t, n] = E(
2207
2627
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2208
2628
  );
2209
- function i(a) {
2210
- return e.tabs && e.tabs[a].content;
2629
+ function i(o) {
2630
+ return e.tabs && e.tabs[o].content;
2211
2631
  }
2212
- function o(a) {
2213
- a === t && e.collapsible ? n(-1) : n(a);
2632
+ function a(o) {
2633
+ o === t && e.collapsible ? n(-1) : n(o);
2214
2634
  }
2215
- return /* @__PURE__ */ B("div", { children: [
2635
+ return /* @__PURE__ */ V("div", { children: [
2216
2636
  /* @__PURE__ */ s(
2217
2637
  "div",
2218
2638
  {
@@ -2223,20 +2643,20 @@ function dn(e) {
2223
2643
  justifyContent: e.tabHeaderLayout || "flex-start",
2224
2644
  overflow: "auto"
2225
2645
  },
2226
- children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2646
+ children: (r = e.tabs) == null ? void 0 : r.map((o, l) => /* @__PURE__ */ s(
2227
2647
  "span",
2228
2648
  {
2229
2649
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2230
2650
  style: {
2231
2651
  ...t === l ? e.activeTabStyle : {}
2232
2652
  },
2233
- onClick: (d) => o(l),
2653
+ onClick: (u) => a(l),
2234
2654
  children: /* @__PURE__ */ s(
2235
- F,
2655
+ $,
2236
2656
  {
2237
2657
  parent: e.builderBlock.id,
2238
2658
  path: `tabs.${l}.label`,
2239
- blocks: a.label,
2659
+ blocks: o.label,
2240
2660
  context: e.builderContext,
2241
2661
  registeredComponents: e.builderComponents,
2242
2662
  linkComponent: e.builderLinkComponent
@@ -2248,7 +2668,7 @@ function dn(e) {
2248
2668
  }
2249
2669
  ),
2250
2670
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2251
- F,
2671
+ $,
2252
2672
  {
2253
2673
  parent: e.builderBlock.id,
2254
2674
  path: `tabs.${t}.content`,
@@ -2260,7 +2680,7 @@ function dn(e) {
2260
2680
  ) }) : null
2261
2681
  ] });
2262
2682
  }
2263
- const un = {
2683
+ const xn = {
2264
2684
  shouldReceiveBuilderProps: {
2265
2685
  builderBlock: !1,
2266
2686
  builderContext: !0
@@ -2283,7 +2703,7 @@ const un = {
2283
2703
  textAlign: "center"
2284
2704
  }
2285
2705
  };
2286
- function mn(e) {
2706
+ function Sn(e) {
2287
2707
  var t;
2288
2708
  return /* @__PURE__ */ s(
2289
2709
  "div",
@@ -2296,7 +2716,7 @@ function mn(e) {
2296
2716
  }
2297
2717
  );
2298
2718
  }
2299
- const fn = {
2719
+ const kn = {
2300
2720
  name: "Custom Code",
2301
2721
  static: !0,
2302
2722
  requiredPermissions: ["editCode"],
@@ -2319,15 +2739,15 @@ const fn = {
2319
2739
  advanced: !0
2320
2740
  }]
2321
2741
  };
2322
- function hn(e) {
2323
- const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []);
2742
+ function Cn(e) {
2743
+ const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []);
2324
2744
  return A(() => {
2325
2745
  var l;
2326
2746
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2327
2747
  return;
2328
- const a = t.current.getElementsByTagName("script");
2329
- for (let d = 0; d < a.length; d++) {
2330
- const c = a[d];
2748
+ const o = t.current.getElementsByTagName("script");
2749
+ for (let u = 0; u < o.length; u++) {
2750
+ const c = o[u];
2331
2751
  if (c.src) {
2332
2752
  if (n.includes(c.src))
2333
2753
  continue;
@@ -2339,10 +2759,10 @@ function hn(e) {
2339
2759
  "application/javascript",
2340
2760
  "application/ecmascript"
2341
2761
  ].includes(c.type)) {
2342
- if (o.includes(c.innerText))
2762
+ if (a.includes(c.innerText))
2343
2763
  continue;
2344
2764
  try {
2345
- o.push(c.innerText), new Function(c.innerText)();
2765
+ a.push(c.innerText), new Function(c.innerText)();
2346
2766
  } catch (h) {
2347
2767
  console.warn("`CustomCode`: Error running script:", h);
2348
2768
  }
@@ -2357,7 +2777,7 @@ function hn(e) {
2357
2777
  }
2358
2778
  );
2359
2779
  }
2360
- const gn = {
2780
+ const Tn = {
2361
2781
  name: "Embed",
2362
2782
  static: !0,
2363
2783
  inputs: [{
@@ -2372,30 +2792,30 @@ const gn = {
2372
2792
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2373
2793
  hideFromUI: !0
2374
2794
  }]
2375
- }, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
2376
- function yn(e) {
2377
- const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2378
- function d() {
2795
+ }, wn = ["text/javascript", "application/javascript", "application/ecmascript"], In = (e) => wn.includes(e.type);
2796
+ function En(e) {
2797
+ const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []), [o, l] = E(() => !1);
2798
+ function u() {
2379
2799
  if (!t.current || !t.current.getElementsByTagName)
2380
2800
  return;
2381
2801
  const c = t.current.getElementsByTagName("script");
2382
2802
  for (let h = 0; h < c.length; h++) {
2383
- const m = c[h];
2384
- if (m.src && !n.includes(m.src)) {
2385
- n.push(m.src);
2386
- const u = document.createElement("script");
2387
- u.async = !0, u.src = m.src, document.head.appendChild(u);
2388
- } else if (pn(m) && !o.includes(m.innerText))
2803
+ const g = c[h];
2804
+ if (g.src && !n.includes(g.src)) {
2805
+ n.push(g.src);
2806
+ const f = document.createElement("script");
2807
+ f.async = !0, f.src = g.src, document.head.appendChild(f);
2808
+ } else if (In(g) && !a.includes(g.innerText))
2389
2809
  try {
2390
- o.push(m.innerText), new Function(m.innerText)();
2391
- } catch (u) {
2392
- console.warn("`Embed`: Error running script:", u);
2810
+ a.push(g.innerText), new Function(g.innerText)();
2811
+ } catch (f) {
2812
+ console.warn("`Embed`: Error running script:", f);
2393
2813
  }
2394
2814
  }
2395
2815
  }
2396
2816
  return A(() => {
2397
- t.current && !a && (l(!0), d());
2398
- }, [t.current, a]), /* @__PURE__ */ s(
2817
+ t.current && !o && (l(!0), u());
2818
+ }, [t.current, o]), /* @__PURE__ */ s(
2399
2819
  "div",
2400
2820
  {
2401
2821
  className: "builder-embed",
@@ -2404,7 +2824,7 @@ function yn(e) {
2404
2824
  }
2405
2825
  );
2406
2826
  }
2407
- const xn = {
2827
+ const Rn = {
2408
2828
  name: "Form:Form",
2409
2829
  // editableTags: ['builder-form-error']
2410
2830
  defaults: {
@@ -2641,118 +3061,118 @@ const xn = {
2641
3061
  builderComponents: !0,
2642
3062
  builderLinkComponent: !0
2643
3063
  }
2644
- }, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
3064
+ }, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Vn = () => {
2645
3065
  const e = process.env.NODE_ENV || "production";
2646
- return vn.includes(e) ? e : "production";
3066
+ return Pn.includes(e) ? e : "production";
2647
3067
  };
2648
- function kn(e) {
2649
- const t = L(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2650
- function d(m) {
2651
- var k, g;
2652
- const u = {
3068
+ function Bn(e) {
3069
+ const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
3070
+ function u(g) {
3071
+ var k, d;
3072
+ const f = {
2653
3073
  ...e.builderContext.rootState,
2654
- ...m
3074
+ ...g
2655
3075
  };
2656
- e.builderContext.rootSetState ? (g = (k = e.builderContext).rootSetState) == null || g.call(k, u) : e.builderContext.rootState = u;
3076
+ e.builderContext.rootSetState ? (d = (k = e.builderContext).rootSetState) == null || d.call(k, f) : e.builderContext.rootState = f;
2657
3077
  }
2658
3078
  function c() {
2659
- return N() && e.previewState || n;
3079
+ return W() && e.previewState || n;
2660
3080
  }
2661
- function h(m) {
3081
+ function h(g) {
2662
3082
  var k;
2663
- const u = e.sendWithJs || e.sendSubmissionsTo === "email";
3083
+ const f = e.sendWithJs || e.sendSubmissionsTo === "email";
2664
3084
  if (e.sendSubmissionsTo === "zapier")
2665
- m.preventDefault();
2666
- else if (u) {
3085
+ g.preventDefault();
3086
+ else if (f) {
2667
3087
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2668
- m.preventDefault();
3088
+ g.preventDefault();
2669
3089
  return;
2670
3090
  }
2671
- m.preventDefault();
2672
- const g = m.currentTarget || m.target, v = e.customHeaders || {};
2673
- let y;
2674
- const b = new FormData(g), p = Array.from(g.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
2675
- let S;
2676
- const x = f.name;
2677
- if (f instanceof HTMLInputElement)
2678
- if (f.type === "radio") {
2679
- if (f.checked)
2680
- return S = f.name, {
2681
- key: x,
2682
- value: S
3091
+ g.preventDefault();
3092
+ const d = g.currentTarget || g.target, b = e.customHeaders || {};
3093
+ let v;
3094
+ const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3095
+ let p;
3096
+ const C = m.name;
3097
+ if (m instanceof HTMLInputElement)
3098
+ if (m.type === "radio") {
3099
+ if (m.checked)
3100
+ return p = m.name, {
3101
+ key: C,
3102
+ value: p
2683
3103
  };
2684
- } else if (f.type === "checkbox")
2685
- S = f.checked;
2686
- else if (f.type === "number" || f.type === "range") {
2687
- const T = f.valueAsNumber;
2688
- isNaN(T) || (S = T);
3104
+ } else if (m.type === "checkbox")
3105
+ p = m.checked;
3106
+ else if (m.type === "number" || m.type === "range") {
3107
+ const w = m.valueAsNumber;
3108
+ isNaN(w) || (p = w);
2689
3109
  } else
2690
- f.type === "file" ? S = f.files : S = f.value;
3110
+ m.type === "file" ? p = m.files : p = m.value;
2691
3111
  else
2692
- S = f.value;
3112
+ p = m.value;
2693
3113
  return {
2694
- key: x,
2695
- value: S
3114
+ key: C,
3115
+ value: p
2696
3116
  };
2697
3117
  });
2698
- let C = e.contentType;
2699
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(p).forEach(({ value: f }) => {
2700
- (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
2701
- }), C !== "application/json")
2702
- y = b;
3118
+ let T = e.contentType;
3119
+ if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(x).forEach(({ value: m }) => {
3120
+ (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
3121
+ }), T !== "application/json")
3122
+ v = y;
2703
3123
  else {
2704
- const f = {};
2705
- Array.from(p).forEach(({ value: S, key: x }) => {
2706
- Re(f, x, S);
2707
- }), y = JSON.stringify(f);
3124
+ const m = {};
3125
+ Array.from(x).forEach(({ value: p, key: C }) => {
3126
+ Pe(m, C, p);
3127
+ }), v = JSON.stringify(m);
2708
3128
  }
2709
- C && C !== "multipart/form-data" && (u && ((k = e.action) != null && k.includes("zapier.com")) || (v["content-type"] = C));
2710
- const P = new CustomEvent("presubmit", { detail: { body: y } });
3129
+ T && T !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
3130
+ const P = new CustomEvent("presubmit", { detail: { body: v } });
2711
3131
  if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
2712
3132
  return;
2713
3133
  i("sending");
2714
- const I = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3134
+ const I = `${Vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2715
3135
  e.sendSubmissionsToEmail || ""
2716
- )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? I : e.action;
2717
- Te(w), fetch(w, { body: y, headers: v, method: e.method || "post" }).then(
2718
- async (f) => {
2719
- let S;
2720
- const x = f.headers.get("content-type");
2721
- if (x && x.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok && e.errorMessagePath) {
2722
- let T = Be(S, e.errorMessagePath);
2723
- T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
3136
+ )}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? I : e.action;
3137
+ we(S), fetch(S, { body: v, headers: b, method: e.method || "post" }).then(
3138
+ async (m) => {
3139
+ let p;
3140
+ const C = m.headers.get("content-type");
3141
+ if (C && C.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
3142
+ let w = Be(p, e.errorMessagePath);
3143
+ w && (typeof w != "string" && (w = JSON.stringify(w)), l(w), u({ formErrorMessage: w }));
2724
3144
  }
2725
- if (r(S), i(f.ok ? "success" : "error"), f.ok) {
2726
- const T = new CustomEvent("submit:success", {
2727
- detail: { res: f, body: S }
3145
+ if (r(p), i(m.ok ? "success" : "error"), m.ok) {
3146
+ const w = new CustomEvent("submit:success", {
3147
+ detail: { res: m, body: p }
2728
3148
  });
2729
3149
  if (t.current) {
2730
- if (t.current.dispatchEvent(T), T.defaultPrevented)
3150
+ if (t.current.dispatchEvent(w), w.defaultPrevented)
2731
3151
  return;
2732
3152
  e.resetFormOnSubmit !== !1 && t.current.reset();
2733
3153
  }
2734
3154
  if (e.successUrl)
2735
3155
  if (t.current) {
2736
- const V = new CustomEvent("route", {
3156
+ const B = new CustomEvent("route", {
2737
3157
  detail: { url: e.successUrl }
2738
3158
  });
2739
- t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
3159
+ t.current.dispatchEvent(B), B.defaultPrevented || (location.href = e.successUrl);
2740
3160
  } else
2741
3161
  location.href = e.successUrl;
2742
3162
  }
2743
3163
  },
2744
- (f) => {
2745
- const S = new CustomEvent("submit:error", {
2746
- detail: { error: f }
3164
+ (m) => {
3165
+ const p = new CustomEvent("submit:error", {
3166
+ detail: { error: m }
2747
3167
  });
2748
- t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(f), i("error"));
3168
+ t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (r(m), i("error"));
2749
3169
  }
2750
3170
  );
2751
3171
  }
2752
3172
  }
2753
- return /* @__PURE__ */ B(E, { children: [
3173
+ return /* @__PURE__ */ V(R, { children: [
2754
3174
  " ",
2755
- /* @__PURE__ */ B(
3175
+ /* @__PURE__ */ V(
2756
3176
  "form",
2757
3177
  {
2758
3178
  validate: e.validate,
@@ -2760,12 +3180,12 @@ function kn(e) {
2760
3180
  action: !e.sendWithJs && e.action,
2761
3181
  method: e.method,
2762
3182
  name: e.name,
2763
- onSubmit: (m) => h(m),
3183
+ onSubmit: (g) => h(g),
2764
3184
  ...e.attributes,
2765
3185
  children: [
2766
3186
  e.children,
2767
3187
  c() === "error" ? /* @__PURE__ */ s(
2768
- F,
3188
+ $,
2769
3189
  {
2770
3190
  path: "errorMessage",
2771
3191
  blocks: e.errorMessage,
@@ -2773,16 +3193,16 @@ function kn(e) {
2773
3193
  }
2774
3194
  ) : null,
2775
3195
  c() === "sending" ? /* @__PURE__ */ s(
2776
- F,
3196
+ $,
2777
3197
  {
2778
3198
  path: "sendingMessage",
2779
3199
  blocks: e.sendingMessage,
2780
3200
  context: e.builderContext
2781
3201
  }
2782
3202
  ) : null,
2783
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
3203
+ c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
2784
3204
  c() === "success" ? /* @__PURE__ */ s(
2785
- F,
3205
+ $,
2786
3206
  {
2787
3207
  path: "successMessage",
2788
3208
  blocks: e.successMessage,
@@ -2797,7 +3217,7 @@ function kn(e) {
2797
3217
  " "
2798
3218
  ] });
2799
3219
  }
2800
- const Cn = {
3220
+ const An = {
2801
3221
  name: "Form:Input",
2802
3222
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2803
3223
  inputs: [
@@ -2849,12 +3269,12 @@ const Cn = {
2849
3269
  borderColor: "#ccc"
2850
3270
  }
2851
3271
  };
2852
- function Tn(e) {
2853
- return /* @__PURE__ */ Ee(
3272
+ function Nn(e) {
3273
+ return /* @__PURE__ */ Re(
2854
3274
  "input",
2855
3275
  {
2856
3276
  ...e.attributes,
2857
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3277
+ key: W() && e.defaultValue ? e.defaultValue : "default-key",
2858
3278
  placeholder: e.placeholder,
2859
3279
  type: e.type,
2860
3280
  name: e.name,
@@ -2864,7 +3284,7 @@ function Tn(e) {
2864
3284
  }
2865
3285
  );
2866
3286
  }
2867
- const In = {
3287
+ const Wn = {
2868
3288
  name: "Form:Select",
2869
3289
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2870
3290
  defaultStyles: {
@@ -2907,14 +3327,14 @@ const In = {
2907
3327
  static: !0,
2908
3328
  noWrap: !0
2909
3329
  };
2910
- function wn(e) {
3330
+ function $n(e) {
2911
3331
  var t;
2912
- return /* @__PURE__ */ Ee(
3332
+ return /* @__PURE__ */ Re(
2913
3333
  "select",
2914
3334
  {
2915
3335
  ...e.attributes,
2916
3336
  value: e.value,
2917
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3337
+ key: W() && e.defaultValue ? e.defaultValue : "default-key",
2918
3338
  defaultValue: e.defaultValue,
2919
3339
  name: e.name,
2920
3340
  required: e.required
@@ -2922,7 +3342,7 @@ function wn(e) {
2922
3342
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2923
3343
  );
2924
3344
  }
2925
- const En = {
3345
+ const Dn = {
2926
3346
  name: "Form:SubmitButton",
2927
3347
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2928
3348
  defaultStyles: {
@@ -2948,10 +3368,10 @@ const En = {
2948
3368
  // TODO: defaultChildren
2949
3369
  // canHaveChildren: true,
2950
3370
  };
2951
- function Rn(e) {
3371
+ function Fn(e) {
2952
3372
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2953
3373
  }
2954
- const Pn = {
3374
+ const Ln = {
2955
3375
  name: "Form:TextArea",
2956
3376
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2957
3377
  inputs: [{
@@ -2988,7 +3408,7 @@ const Pn = {
2988
3408
  static: !0,
2989
3409
  noWrap: !0
2990
3410
  };
2991
- function Bn(e) {
3411
+ function On(e) {
2992
3412
  return /* @__PURE__ */ s(
2993
3413
  "textarea",
2994
3414
  {
@@ -3001,7 +3421,7 @@ function Bn(e) {
3001
3421
  }
3002
3422
  );
3003
3423
  }
3004
- const Vn = {
3424
+ const Un = {
3005
3425
  // friendlyName?
3006
3426
  name: "Raw:Img",
3007
3427
  hideFromInsertMenu: !0,
@@ -3010,13 +3430,13 @@ const Vn = {
3010
3430
  name: "image",
3011
3431
  bubble: !0,
3012
3432
  type: "file",
3013
- allowedFileTypes: de,
3433
+ allowedFileTypes: ue,
3014
3434
  required: !0
3015
3435
  }],
3016
3436
  noWrap: !0,
3017
3437
  static: !0
3018
3438
  };
3019
- function An(e) {
3439
+ function _n(e) {
3020
3440
  return /* @__PURE__ */ s(
3021
3441
  "img",
3022
3442
  {
@@ -3028,10 +3448,10 @@ function An(e) {
3028
3448
  src: e.imgSrc || e.image,
3029
3449
  ...e.attributes
3030
3450
  },
3031
- N() && e.imgSrc || "default-key"
3451
+ W() && e.imgSrc || "default-key"
3032
3452
  );
3033
3453
  }
3034
- const Wn = {
3454
+ const qn = {
3035
3455
  name: "Video",
3036
3456
  canHaveChildren: !0,
3037
3457
  defaultStyles: {
@@ -3042,14 +3462,14 @@ const Wn = {
3042
3462
  inputs: [{
3043
3463
  name: "video",
3044
3464
  type: "file",
3045
- allowedFileTypes: nn,
3465
+ allowedFileTypes: an,
3046
3466
  bubble: !0,
3047
3467
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3048
3468
  required: !0
3049
3469
  }, {
3050
3470
  name: "posterImage",
3051
3471
  type: "file",
3052
- allowedFileTypes: de,
3472
+ allowedFileTypes: ue,
3053
3473
  helperText: "Image to show before the video plays"
3054
3474
  }, {
3055
3475
  name: "autoPlay",
@@ -3116,8 +3536,8 @@ const Wn = {
3116
3536
  builderBlock: !0
3117
3537
  }
3118
3538
  };
3119
- function Nn(e) {
3120
- var i, o, r, a, l, d, c;
3539
+ function Hn(e) {
3540
+ var i, a, r, o, l, u, c;
3121
3541
  function t() {
3122
3542
  return {
3123
3543
  ...e.autoPlay === !0 ? {
@@ -3142,7 +3562,7 @@ function Nn(e) {
3142
3562
  ...t()
3143
3563
  };
3144
3564
  }
3145
- return /* @__PURE__ */ B(
3565
+ return /* @__PURE__ */ V(
3146
3566
  "div",
3147
3567
  {
3148
3568
  style: {
@@ -3173,7 +3593,7 @@ function Nn(e) {
3173
3593
  children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3174
3594
  }
3175
3595
  ),
3176
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3596
+ e.aspectRatio && !(e.fitContent && ((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length)) ? /* @__PURE__ */ s(
3177
3597
  "div",
3178
3598
  {
3179
3599
  style: {
@@ -3184,7 +3604,7 @@ function Nn(e) {
3184
3604
  }
3185
3605
  }
3186
3606
  ) : null,
3187
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3607
+ (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3188
3608
  "div",
3189
3609
  {
3190
3610
  style: {
@@ -3195,7 +3615,7 @@ function Nn(e) {
3195
3615
  children: e.children
3196
3616
  }
3197
3617
  ) : null,
3198
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3618
+ (c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3199
3619
  "div",
3200
3620
  {
3201
3621
  style: {
@@ -3216,64 +3636,67 @@ function Nn(e) {
3216
3636
  }
3217
3637
  );
3218
3638
  }
3219
- const Fn = () => [{
3220
- component: hn,
3221
- ...fn
3639
+ const jn = () => [{
3640
+ component: Cn,
3641
+ ...kn
3222
3642
  }, {
3223
- component: yn,
3224
- ...gn
3643
+ component: En,
3644
+ ...Tn
3225
3645
  }, {
3226
- component: kn,
3227
- ...xn
3646
+ component: Bn,
3647
+ ...Rn
3228
3648
  }, {
3229
- component: Tn,
3230
- ...Cn
3649
+ component: Nn,
3650
+ ...An
3231
3651
  }, {
3232
- component: Rn,
3233
- ...En
3652
+ component: Fn,
3653
+ ...Dn
3234
3654
  }, {
3235
- component: wn,
3236
- ...In
3655
+ component: $n,
3656
+ ...Wn
3237
3657
  }, {
3238
- component: Bn,
3239
- ...Pn
3658
+ component: On,
3659
+ ...Ln
3240
3660
  }, {
3241
- component: An,
3242
- ...Vn
3661
+ component: _n,
3662
+ ...Un
3243
3663
  }, {
3244
- component: Nn,
3245
- ...Wn
3664
+ component: Hn,
3665
+ ...qn
3246
3666
  }], xe = () => [{
3247
3667
  component: ot,
3248
- ...Zt
3249
- }, {
3250
- component: qt,
3251
3668
  ...en
3252
3669
  }, {
3253
3670
  component: zt,
3254
3671
  ...tn
3255
3672
  }, {
3256
- component: Gt,
3673
+ component: Kt,
3674
+ ...nn
3675
+ }, {
3676
+ component: Qt,
3257
3677
  ...on
3258
3678
  }, {
3259
3679
  component: Yt,
3260
- ...an
3680
+ ...hn
3261
3681
  }, {
3262
- component: ln,
3263
- ...rn
3682
+ component: bn,
3683
+ ...gn
3264
3684
  }, {
3265
- component: ai,
3266
- ...sn
3685
+ component: hi,
3686
+ ...pn
3267
3687
  }, {
3268
- component: mn,
3269
- ...un
3688
+ component: Sn,
3689
+ ...xn
3690
+ }, {
3691
+ component: fn,
3692
+ ...rn
3270
3693
  }, {
3271
- component: dn,
3272
- ...cn
3694
+ component: vn,
3695
+ ...yn
3273
3696
  }, {
3274
- component: Xt,
3275
- ...Qt
3276
- }, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3697
+ component: Zt,
3698
+ ...Xt
3699
+ }, ...jn()], Mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3277
3700
  function getAndSetVariantId() {
3278
3701
  function setCookie(name, value, days) {
3279
3702
  let expires = '';
@@ -3329,7 +3752,7 @@ const Fn = () => [{
3329
3752
  }).join('');
3330
3753
  styleEl.innerHTML = newStyleStr;
3331
3754
  }
3332
- }`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3755
+ }`, zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3333
3756
  if (!navigator.cookieEnabled) {
3334
3757
  return;
3335
3758
  }
@@ -3363,39 +3786,29 @@ const Fn = () => [{
3363
3786
  thisScriptEl?.remove();
3364
3787
  }
3365
3788
  return;
3366
- }`, _e = "builderIoAbTest", He = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3789
+ }`, qe = "builderIoAbTest", He = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3367
3790
  ...t,
3368
3791
  testVariationId: t.id,
3369
3792
  id: e == null ? void 0 : e.id
3370
- })), Dn = ({
3793
+ })), Kn = ({
3371
3794
  canTrack: e,
3372
3795
  content: t
3373
- }) => !(!(M(t).length > 0) || !e || j()), On = (e) => e === "react" || e === "reactNative", Me = On($), Un = () => `
3374
- window.${_e} = ${$n}
3375
- window.${He} = ${Ln}
3376
- `, _n = (e, t) => `
3377
- window.${_e}(
3378
- "${t}",${JSON.stringify(e)}, ${Me}
3379
- )`, Hn = ({
3796
+ }) => !(!(z(t).length > 0) || !e || L()), Jn = (e) => e === "react" || e === "reactNative", je = Jn(F), Gn = () => `
3797
+ window.${qe} = ${Mn}
3798
+ window.${He} = ${zn}
3799
+ `, Qn = (e, t) => `
3800
+ window.${qe}(
3801
+ "${t}",${JSON.stringify(e)}, ${je}
3802
+ )`, Yn = ({
3380
3803
  contentId: e,
3381
3804
  variationId: t
3382
3805
  }) => `window.${He}(
3383
- "${t}", "${e}", ${Me}
3806
+ "${t}", "${e}", ${je}
3384
3807
  )`;
3385
- function ie(e) {
3386
- return /* @__PURE__ */ s(
3387
- "script",
3388
- {
3389
- dangerouslySetInnerHTML: { __html: e.scriptStr },
3390
- "data-id": e.id,
3391
- nonce: e.nonce || ""
3392
- }
3393
- );
3394
- }
3395
- function ve(e) {
3808
+ function Se(e) {
3396
3809
  return Math.round(e * 1e3) / 1e3;
3397
3810
  }
3398
- const Mn = (e, t, n = !0) => {
3811
+ const Xn = (e, t, n = !0) => {
3399
3812
  if (!(e instanceof HTMLElement))
3400
3813
  return null;
3401
3814
  let i = n ? e : e.parentElement;
@@ -3406,39 +3819,39 @@ const Mn = (e, t, n = !0) => {
3406
3819
  return i;
3407
3820
  } while (i = i.parentElement);
3408
3821
  return null;
3409
- }, jn = (e) => Mn(e, (t) => {
3822
+ }, Zn = (e) => Xn(e, (t) => {
3410
3823
  const n = t.getAttribute("builder-id") || t.id;
3411
3824
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3412
- }), Se = ({
3825
+ }), ke = ({
3413
3826
  event: e,
3414
3827
  target: t
3415
3828
  }) => {
3416
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ve(i / n.width), a = ve(o / n.height);
3829
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Se(i / n.width), o = Se(a / n.height);
3417
3830
  return {
3418
3831
  x: r,
3419
- y: a
3832
+ y: o
3420
3833
  };
3421
- }, qn = (e) => {
3422
- const t = e.target, n = t && jn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3834
+ }, ei = (e) => {
3835
+ const t = e.target, n = t && Zn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3423
3836
  return {
3424
3837
  targetBuilderElement: i || void 0,
3425
3838
  metadata: {
3426
- targetOffset: t ? Se({
3839
+ targetOffset: t ? ke({
3427
3840
  event: e,
3428
3841
  target: t
3429
3842
  }) : void 0,
3430
- builderTargetOffset: n ? Se({
3843
+ builderTargetOffset: n ? ke({
3431
3844
  event: e,
3432
3845
  target: n
3433
3846
  }) : void 0,
3434
3847
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3435
3848
  }
3436
3849
  };
3437
- }, zn = ["svelte", "qwik", "vue"], ke = () => zn.includes($) && (N() || ae()), Kn = (e) => {
3438
- var r, a;
3439
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3440
- let o = "";
3441
- if (i && t && n && (o += `
3850
+ }, ti = ["svelte", "qwik", "vue"], Ce = () => ti.includes(F) && (W() || G()), ni = (e) => {
3851
+ var r, o;
3852
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3853
+ let a = "";
3854
+ if (i && t && n && (a += `
3442
3855
  @font-face {
3443
3856
  font-family: "${t}";
3444
3857
  src: local("${n}"), url('${i}') format('woff2');
@@ -3450,7 +3863,7 @@ font-weight: 400;
3450
3863
  if (!(String(Number(l)) === l))
3451
3864
  continue;
3452
3865
  const c = e.files[l];
3453
- c && c !== i && (o += `
3866
+ c && c !== i && (a += `
3454
3867
  @font-face {
3455
3868
  font-family: "${t}";
3456
3869
  src: url('${c}') format('woff2');
@@ -3459,16 +3872,16 @@ font-weight: ${l};
3459
3872
  }
3460
3873
  `.trim());
3461
3874
  }
3462
- return o;
3463
- }, Jn = ({
3875
+ return a;
3876
+ }, ii = ({
3464
3877
  customFonts: e
3465
3878
  }) => {
3466
3879
  var t;
3467
- return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
3468
- }, Gn = ({
3880
+ return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
3881
+ }, ai = ({
3469
3882
  cssCode: e,
3470
3883
  contentId: t
3471
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yn = `
3884
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
3472
3885
  .builder-button {
3473
3886
  all: unset;
3474
3887
  }
@@ -3485,103 +3898,103 @@ font-weight: ${l};
3485
3898
  text-align: inherit;
3486
3899
  font-family: inherit;
3487
3900
  }
3488
- `, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
3489
- function Zn(e) {
3490
- var p, C, P;
3491
- const t = L(null);
3901
+ `, ri = (e) => e ? "" : oi, li = (e) => `variant-${e}`;
3902
+ function si(e) {
3903
+ var x, T, P;
3904
+ const t = D(null);
3492
3905
  function n(I) {
3493
- var f, S;
3494
- const w = {
3906
+ var m, p;
3907
+ const S = {
3495
3908
  ...e.builderContextSignal.rootState,
3496
3909
  ...I
3497
3910
  };
3498
- e.builderContextSignal.rootSetState ? (S = (f = e.builderContextSignal).rootSetState) == null || S.call(f, w) : e.setBuilderContextSignal((x) => ({
3499
- ...x,
3500
- rootState: w
3911
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, S) : e.setBuilderContextSignal((C) => ({
3912
+ ...C,
3913
+ rootState: S
3501
3914
  }));
3502
3915
  }
3503
3916
  function i(I) {
3504
- var f, S, x, T, V;
3505
- const w = {
3917
+ var m, p, C, w, B;
3918
+ const S = {
3506
3919
  ...e.builderContextSignal.content,
3507
3920
  ...I,
3508
3921
  data: {
3509
- ...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
3922
+ ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
3510
3923
  ...I == null ? void 0 : I.data
3511
3924
  },
3512
3925
  meta: {
3513
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
3926
+ ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
3514
3927
  ...I == null ? void 0 : I.meta,
3515
- breakpoints: ((x = I == null ? void 0 : I.meta) == null ? void 0 : x.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
3928
+ breakpoints: ((C = I == null ? void 0 : I.meta) == null ? void 0 : C.breakpoints) || ((B = (w = e.builderContextSignal.content) == null ? void 0 : w.meta) == null ? void 0 : B.breakpoints)
3516
3929
  }
3517
3930
  };
3518
- e.setBuilderContextSignal((W) => ({
3519
- ...W,
3520
- content: w
3931
+ e.setBuilderContextSignal((N) => ({
3932
+ ...N,
3933
+ content: S
3521
3934
  }));
3522
3935
  }
3523
- function o() {
3936
+ function a() {
3524
3937
  return e.showContent ? {} : {
3525
3938
  hidden: !0,
3526
3939
  "aria-hidden": !0
3527
3940
  };
3528
3941
  }
3529
- const [r, a] = R(
3942
+ const [r, o] = E(
3530
3943
  () => e.contentWrapper || "div"
3531
3944
  );
3532
3945
  function l(I) {
3533
- return Ke({
3946
+ return Je({
3534
3947
  model: e.model,
3535
3948
  trustedHosts: e.trustedHosts,
3536
3949
  callbacks: {
3537
- configureSdk: (w) => {
3538
- var x;
3539
- const { breakpoints: f, contentId: S } = w;
3540
- !S || S !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || f && i({
3950
+ configureSdk: (S) => {
3951
+ var C;
3952
+ const { breakpoints: m, contentId: p } = S;
3953
+ !p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
3541
3954
  meta: {
3542
- breakpoints: f
3955
+ breakpoints: m
3543
3956
  }
3544
3957
  });
3545
3958
  },
3546
- animation: (w) => {
3547
- Ne(w);
3959
+ animation: (S) => {
3960
+ $e(S);
3548
3961
  },
3549
- contentUpdate: (w) => {
3550
- i(w);
3962
+ contentUpdate: (S) => {
3963
+ i(S);
3551
3964
  }
3552
3965
  }
3553
3966
  })(I);
3554
3967
  }
3555
- const [d, c] = R(() => ({})), [h, m] = R(() => ({})), [u, k] = R(() => !1);
3556
- function g(I) {
3557
- var w, f;
3968
+ const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [f, k] = E(() => !1);
3969
+ function d(I) {
3970
+ var S, m;
3558
3971
  if (e.builderContextSignal.content) {
3559
- const S = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
3560
- ue({
3972
+ const p = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
3973
+ me({
3561
3974
  apiHost: e.apiHost,
3562
3975
  type: "click",
3563
- canTrack: q(e.canTrack),
3564
- contentId: x,
3976
+ canTrack: _(e.canTrack),
3977
+ contentId: C,
3565
3978
  apiKey: e.apiKey,
3566
- variationId: S !== x ? S : void 0,
3567
- ...qn(I),
3568
- unique: !u
3979
+ variationId: p !== C ? p : void 0,
3980
+ ...ei(I),
3981
+ unique: !f
3569
3982
  });
3570
3983
  }
3571
- u || k(!0);
3984
+ f || k(!0);
3572
3985
  }
3573
- function v() {
3574
- var w, f, S;
3575
- const I = (S = (f = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : f.httpRequests) != null ? S : {};
3576
- Object.entries(I).forEach(([x, T]) => {
3577
- if (!T || h[x] || d[x] && !N())
3986
+ function b() {
3987
+ var S, m, p;
3988
+ const I = (p = (m = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : m.httpRequests) != null ? p : {};
3989
+ Object.entries(I).forEach(([C, w]) => {
3990
+ if (!w || h[C] || u[C] && !W())
3578
3991
  return;
3579
- h[x] = !0;
3580
- const V = T.replace(
3992
+ h[C] = !0;
3993
+ const B = w.replace(
3581
3994
  /{{([^}]+)}}/g,
3582
- (W, _) => String(
3583
- D({
3584
- code: _,
3995
+ (N, j) => String(
3996
+ O({
3997
+ code: j,
3585
3998
  context: e.context || {},
3586
3999
  localState: void 0,
3587
4000
  rootState: e.builderContextSignal.rootState,
@@ -3589,19 +4002,19 @@ function Zn(e) {
3589
4002
  })
3590
4003
  )
3591
4004
  );
3592
- Te(V), fetch(V).then((W) => W.json()).then((W) => {
4005
+ we(B), fetch(B).then((N) => N.json()).then((N) => {
3593
4006
  n({
3594
- [x]: W
3595
- }), d[x] = !0;
3596
- }).catch((W) => {
3597
- console.error("error fetching dynamic data", T, W);
4007
+ [C]: N
4008
+ }), u[C] = !0;
4009
+ }).catch((N) => {
4010
+ console.error("error fetching dynamic data", w, N);
3598
4011
  }).finally(() => {
3599
- h[x] = !1;
4012
+ h[C] = !1;
3600
4013
  });
3601
4014
  });
3602
4015
  }
3603
- function y() {
3604
- N() && window.dispatchEvent(
4016
+ function v() {
4017
+ W() && window.dispatchEvent(
3605
4018
  new CustomEvent(
3606
4019
  "builder:component:stateChange",
3607
4020
  {
@@ -3615,11 +4028,11 @@ function Zn(e) {
3615
4028
  )
3616
4029
  );
3617
4030
  }
3618
- const b = L(!1);
3619
- return b.current || (v(), y(), b.current = !0), A(() => {
3620
- var I, w, f;
3621
- if (j()) {
3622
- if (N() && !e.isNestedRender && (window.addEventListener("message", l), je(), qe({
4031
+ const y = D(!1);
4032
+ return y.current || (b(), v(), y.current = !0), A(() => {
4033
+ var I, S, m;
4034
+ if (L()) {
4035
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), Me(), ze({
3623
4036
  ...e.locale ? {
3624
4037
  locale: e.locale
3625
4038
  } : {},
@@ -3631,48 +4044,48 @@ function Zn(e) {
3631
4044
  } : {}
3632
4045
  }), Object.values(
3633
4046
  e.builderContextSignal.componentInfos
3634
- ).forEach((x) => {
3635
- var T, V;
3636
- if (!e.model || !((T = x.models) != null && T.length) || x.models.includes(e.model)) {
3637
- const W = ze(x);
3638
- (V = window.parent) == null || V.postMessage(W, "*");
4047
+ ).forEach((C) => {
4048
+ var w, B;
4049
+ if (!e.model || !((w = C.models) != null && w.length) || C.models.includes(e.model)) {
4050
+ const N = Ke(C);
4051
+ (B = window.parent) == null || B.postMessage(N, "*");
3639
4052
  }
3640
4053
  }), window.addEventListener(
3641
4054
  "builder:component:stateChangeListenerActivated",
3642
- y
3643
- )), e.builderContextSignal.content && q(e.canTrack)) {
3644
- const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, T = (w = e.builderContextSignal.content) == null ? void 0 : w.id, V = e.apiKey;
3645
- ue({
4055
+ v
4056
+ )), e.builderContextSignal.content && _(e.canTrack)) {
4057
+ const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, B = e.apiKey;
4058
+ me({
3646
4059
  apiHost: e.apiHost,
3647
4060
  type: "impression",
3648
4061
  canTrack: !0,
3649
- contentId: T,
3650
- apiKey: V,
3651
- variationId: x !== T ? x : void 0
4062
+ contentId: w,
4063
+ apiKey: B,
4064
+ variationId: C !== w ? C : void 0
3652
4065
  });
3653
4066
  }
3654
- if (ae() && !N()) {
3655
- const x = new URL(location.href).searchParams, T = x.get("builder.preview"), V = x.get(
3656
- `builder.overrides.${T}`
3657
- ), W = x.get("apiKey") || x.get("builder.space");
3658
- (T === "BUILDER_STUDIO" || T === e.model && W === e.apiKey && (!e.content || V === e.content.id)) && Ie({
4067
+ if (G() && !W()) {
4068
+ const C = new URL(location.href).searchParams, w = C.get("builder.preview"), B = C.get(
4069
+ `builder.overrides.${w}`
4070
+ ), N = C.get("apiKey") || C.get("builder.space");
4071
+ (w === "BUILDER_STUDIO" || w === e.model && N === e.apiKey && (!e.content || B === e.content.id)) && Ie({
3659
4072
  model: e.model || "",
3660
4073
  apiKey: e.apiKey,
3661
4074
  apiVersion: e.builderContextSignal.apiVersion,
3662
- ...T === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
4075
+ ...w === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
3663
4076
  query: {
3664
4077
  id: e.context.symbolId
3665
4078
  }
3666
4079
  } : {}
3667
- }).then((_) => {
3668
- _ && i(_);
4080
+ }).then((j) => {
4081
+ j && i(j);
3669
4082
  });
3670
4083
  }
3671
4084
  }
3672
4085
  }, []), A(() => {
3673
4086
  e.content && i(e.content);
3674
4087
  }, [e.content]), A(() => {
3675
- y();
4088
+ v();
3676
4089
  }, [e.builderContextSignal.rootState]), A(() => {
3677
4090
  e.data && n(e.data);
3678
4091
  }, [e.data]), A(() => {
@@ -3680,44 +4093,44 @@ function Zn(e) {
3680
4093
  locale: e.locale
3681
4094
  });
3682
4095
  }, [e.locale]), A(() => () => {
3683
- j() && (window.removeEventListener("message", l), window.removeEventListener(
4096
+ L() && (window.removeEventListener("message", l), window.removeEventListener(
3684
4097
  "builder:component:stateChangeListenerActivated",
3685
- y
4098
+ v
3686
4099
  ));
3687
- }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ s(
4100
+ }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
3688
4101
  r,
3689
4102
  {
3690
4103
  ref: t,
3691
- onClick: (I) => g(I),
3692
- "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
4104
+ onClick: (I) => d(I),
4105
+ "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
3693
4106
  "builder-model": e.model,
3694
- className: Xn(
3695
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
4107
+ className: li(
4108
+ ((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
3696
4109
  ),
3697
4110
  style: {
3698
- display: !e.builderContextSignal.content && ke() ? "none" : void 0
4111
+ display: !e.builderContextSignal.content && Ce() ? "none" : void 0
3699
4112
  },
3700
- ...o(),
4113
+ ...a(),
3701
4114
  ...e.contentWrapperProps,
3702
4115
  children: e.children
3703
4116
  }
3704
4117
  ) : null });
3705
4118
  }
3706
- function ei(e) {
3707
- const [t, n] = R(
4119
+ function ci(e) {
4120
+ const [t, n] = E(
3708
4121
  () => `
3709
- ${Gn({
4122
+ ${ai({
3710
4123
  cssCode: e.cssCode,
3711
4124
  contentId: e.contentId
3712
4125
  })}
3713
- ${Jn({
4126
+ ${ii({
3714
4127
  customFonts: e.customFonts
3715
4128
  })}
3716
- ${Qn(e.isNestedRender)}
4129
+ ${ri(e.isNestedRender)}
3717
4130
  `.trim()
3718
4131
  );
3719
4132
  return /* @__PURE__ */ s(
3720
- J,
4133
+ H,
3721
4134
  {
3722
4135
  id: "builderio-content",
3723
4136
  styles: t,
@@ -3725,24 +4138,24 @@ ${Qn(e.isNestedRender)}
3725
4138
  }
3726
4139
  );
3727
4140
  }
3728
- const ti = ({
4141
+ const ui = ({
3729
4142
  content: e,
3730
4143
  data: t,
3731
4144
  locale: n
3732
4145
  }) => {
3733
- var r, a, l;
3734
- const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3735
- return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3736
- d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4146
+ var r, o, l;
4147
+ const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4148
+ return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((u) => {
4149
+ u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
3737
4150
  }), {
3738
4151
  ...i,
3739
- ...o,
4152
+ ...a,
3740
4153
  ...t,
3741
4154
  ...n ? {
3742
4155
  locale: n
3743
4156
  } : {}
3744
4157
  };
3745
- }, ni = ({
4158
+ }, di = ({
3746
4159
  content: e,
3747
4160
  data: t
3748
4161
  }) => e ? {
@@ -3753,46 +4166,46 @@ const ti = ({
3753
4166
  },
3754
4167
  meta: e == null ? void 0 : e.meta
3755
4168
  } : void 0;
3756
- function Ce(e) {
3757
- var c, h, m, u, k, g, v, y, b;
3758
- const [t, n] = R(
4169
+ function Te(e) {
4170
+ var c, h, g, f, k, d, b, v, y;
4171
+ const [t, n] = E(
3759
4172
  () => {
3760
- var p, C;
3761
- return Hn({
4173
+ var x, T;
4174
+ return Yn({
3762
4175
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3763
- variationId: (p = e.content) == null ? void 0 : p.testVariationId,
4176
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
3764
4177
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3765
- contentId: (C = e.content) == null ? void 0 : C.id
4178
+ contentId: (T = e.content) == null ? void 0 : T.id
3766
4179
  });
3767
4180
  }
3768
4181
  );
3769
- function i(p) {
3770
- l((C) => ({
3771
- ...C,
3772
- rootState: p
4182
+ function i(x) {
4183
+ l((T) => ({
4184
+ ...T,
4185
+ rootState: x
3773
4186
  }));
3774
4187
  }
3775
- const [o, r] = R(
4188
+ const [a, r] = E(
3776
4189
  () => [
3777
4190
  ...xe(),
3778
4191
  ...e.customComponents || []
3779
4192
  ].reduce(
3780
- (p, { component: C, ...P }) => ({
3781
- ...p,
4193
+ (x, { component: T, ...P }) => ({
4194
+ ...x,
3782
4195
  [P.name]: {
3783
- component: C,
3784
- ...me(P)
4196
+ component: T,
4197
+ ...fe(P)
3785
4198
  }
3786
4199
  }),
3787
4200
  {}
3788
4201
  )
3789
- ), [a, l] = R(() => ({
3790
- content: ni({
4202
+ ), [o, l] = E(() => ({
4203
+ content: di({
3791
4204
  content: e.content,
3792
4205
  data: e.data
3793
4206
  }),
3794
4207
  localState: void 0,
3795
- rootState: ti({
4208
+ rootState: ui({
3796
4209
  content: e.content,
3797
4210
  data: e.data,
3798
4211
  locale: e.locale
@@ -3806,9 +4219,9 @@ function Ce(e) {
3806
4219
  ...xe(),
3807
4220
  ...e.customComponents || []
3808
4221
  ].reduce(
3809
- (p, { component: C, ...P }) => ({
3810
- ...p,
3811
- [P.name]: me(P)
4222
+ (x, { component: T, ...P }) => ({
4223
+ ...x,
4224
+ [P.name]: fe(P)
3812
4225
  }),
3813
4226
  {}
3814
4227
  ),
@@ -3817,31 +4230,31 @@ function Ce(e) {
3817
4230
  BlocksWrapperProps: e.blocksWrapperProps || {},
3818
4231
  nonce: e.nonce || "",
3819
4232
  model: e.model || ""
3820
- })), d = L(!1);
3821
- if (!d.current) {
4233
+ })), u = D(!1);
4234
+ if (!u.current) {
3822
4235
  e.apiKey || oe.error(
3823
4236
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3824
4237
  );
3825
- const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3826
- p && D({
3827
- code: p,
4238
+ const x = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4239
+ x && O({
4240
+ code: x,
3828
4241
  context: e.context || {},
3829
4242
  localState: void 0,
3830
- rootState: a.rootState,
3831
- rootSetState: (C) => {
3832
- Object.assign(a.rootState, C);
4243
+ rootState: o.rootState,
4244
+ rootSetState: (T) => {
4245
+ Object.assign(o.rootState, T);
3833
4246
  },
3834
4247
  isExpression: !1
3835
- }), d.current = !0;
4248
+ }), u.current = !0;
3836
4249
  }
3837
4250
  return /* @__PURE__ */ s(
3838
- Pe.Provider,
4251
+ Ve.Provider,
3839
4252
  {
3840
4253
  value: {
3841
- registeredComponents: o
4254
+ registeredComponents: a
3842
4255
  },
3843
- children: /* @__PURE__ */ B(
3844
- Zn,
4256
+ children: /* @__PURE__ */ V(
4257
+ si,
3845
4258
  {
3846
4259
  apiHost: e.apiHost,
3847
4260
  nonce: e.nonce,
@@ -3854,7 +4267,7 @@ function Ce(e) {
3854
4267
  locale: e.locale,
3855
4268
  enrich: e.enrich,
3856
4269
  showContent: e.showContent,
3857
- builderContextSignal: a,
4270
+ builderContextSignal: o,
3858
4271
  contentWrapper: e.contentWrapper,
3859
4272
  contentWrapperProps: e.contentWrapperProps,
3860
4273
  trustedHosts: e.trustedHosts,
@@ -3862,7 +4275,7 @@ function Ce(e) {
3862
4275
  setBuilderContextSignal: l,
3863
4276
  children: [
3864
4277
  e.isSsrAbTest ? /* @__PURE__ */ s(
3865
- ie,
4278
+ J,
3866
4279
  {
3867
4280
  id: "builderio-variant-visibility",
3868
4281
  scriptStr: t,
@@ -3870,21 +4283,21 @@ function Ce(e) {
3870
4283
  }
3871
4284
  ) : null,
3872
4285
  /* @__PURE__ */ s(
3873
- ei,
4286
+ ci,
3874
4287
  {
3875
4288
  nonce: e.nonce || "",
3876
4289
  isNestedRender: e.isNestedRender,
3877
- contentId: (m = a.content) == null ? void 0 : m.id,
3878
- cssCode: (k = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : k.cssCode,
3879
- customFonts: (v = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
4290
+ contentId: (g = o.content) == null ? void 0 : g.id,
4291
+ cssCode: (k = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : k.cssCode,
4292
+ customFonts: (b = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : b.customFonts
3880
4293
  }
3881
4294
  ),
3882
4295
  /* @__PURE__ */ s(
3883
- F,
4296
+ $,
3884
4297
  {
3885
- blocks: (b = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
3886
- context: a,
3887
- registeredComponents: o,
4298
+ blocks: (y = (v = o.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
4299
+ context: o,
4300
+ registeredComponents: a,
3888
4301
  linkComponent: e.linkComponent
3889
4302
  }
3890
4303
  )
@@ -3894,66 +4307,66 @@ function Ce(e) {
3894
4307
  }
3895
4308
  );
3896
4309
  }
3897
- function ii(e) {
3898
- var a;
3899
- const [t, n] = R(
3900
- () => Dn({
3901
- canTrack: q(e.canTrack),
4310
+ function mi(e) {
4311
+ var o;
4312
+ const [t, n] = E(
4313
+ () => Kn({
4314
+ canTrack: _(e.canTrack),
3902
4315
  content: e.content
3903
4316
  })
3904
4317
  );
3905
4318
  function i() {
3906
4319
  var l;
3907
- return _n(
3908
- M(e.content).map((d) => ({
3909
- id: d.testVariationId,
3910
- testRatio: d.testRatio
4320
+ return Qn(
4321
+ z(e.content).map((u) => ({
4322
+ id: u.testVariationId,
4323
+ testRatio: u.testRatio
3911
4324
  })),
3912
4325
  ((l = e.content) == null ? void 0 : l.id) || ""
3913
4326
  );
3914
4327
  }
3915
- function o() {
3916
- return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4328
+ function a() {
4329
+ return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3917
4330
  }
3918
4331
  function r() {
3919
4332
  var l;
3920
4333
  return t ? {
3921
4334
  ...e.content,
3922
4335
  testVariationId: (l = e.content) == null ? void 0 : l.id
3923
- } : Je({
4336
+ } : Ge({
3924
4337
  item: e.content,
3925
- canTrack: q(e.canTrack)
4338
+ canTrack: _(e.canTrack)
3926
4339
  });
3927
4340
  }
3928
4341
  return A(() => {
3929
- }, []), /* @__PURE__ */ B(E, { children: [
3930
- !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
3931
- ie,
4342
+ }, []), /* @__PURE__ */ V(R, { children: [
4343
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
4344
+ J,
3932
4345
  {
3933
4346
  id: "builderio-init-variants-fns",
3934
- scriptStr: Un(),
4347
+ scriptStr: Gn(),
3935
4348
  nonce: e.nonce || ""
3936
4349
  }
3937
4350
  ) : null,
3938
- t ? /* @__PURE__ */ B(E, { children: [
4351
+ t ? /* @__PURE__ */ V(R, { children: [
3939
4352
  /* @__PURE__ */ s(
3940
- J,
4353
+ H,
3941
4354
  {
3942
4355
  id: "builderio-variants",
3943
- styles: o(),
4356
+ styles: a(),
3944
4357
  nonce: e.nonce || ""
3945
4358
  }
3946
4359
  ),
3947
4360
  /* @__PURE__ */ s(
3948
- ie,
4361
+ J,
3949
4362
  {
3950
4363
  id: "builderio-variants-visibility",
3951
4364
  scriptStr: i(),
3952
4365
  nonce: e.nonce || ""
3953
4366
  }
3954
4367
  ),
3955
- (a = M(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3956
- Ce,
4368
+ (o = z(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4369
+ Te,
3957
4370
  {
3958
4371
  apiHost: e.apiHost,
3959
4372
  isNestedRender: e.isNestedRender,
@@ -3981,7 +4394,7 @@ function ii(e) {
3981
4394
  ))
3982
4395
  ] }) : null,
3983
4396
  /* @__PURE__ */ s(
3984
- Ce,
4397
+ Te,
3985
4398
  {
3986
4399
  apiHost: e.apiHost,
3987
4400
  nonce: e.nonce,
@@ -4008,7 +4421,7 @@ function ii(e) {
4008
4421
  )
4009
4422
  ] });
4010
4423
  }
4011
- const oi = async ({
4424
+ const fi = async ({
4012
4425
  builderContextValue: e,
4013
4426
  symbol: t
4014
4427
  }) => {
@@ -4027,8 +4440,8 @@ const oi = async ({
4027
4440
  oe.error("Could not fetch symbol content: ", n);
4028
4441
  });
4029
4442
  };
4030
- function ai(e) {
4031
- var l, d, c, h;
4443
+ function hi(e) {
4444
+ var l, u, c, h;
4032
4445
  function t() {
4033
4446
  return "div";
4034
4447
  }
@@ -4036,31 +4449,31 @@ function ai(e) {
4036
4449
  return "div";
4037
4450
  }
4038
4451
  function i() {
4039
- var m, u;
4452
+ var g, f;
4040
4453
  return [
4041
- e.attributes[U()],
4454
+ e.attributes[q()],
4042
4455
  "builder-symbol",
4043
- (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4044
- (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4456
+ (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4457
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4045
4458
  ].filter(Boolean).join(" ");
4046
4459
  }
4047
- const [o, r] = R(() => {
4048
- var m;
4049
- return (m = e.symbol) == null ? void 0 : m.content;
4460
+ const [a, r] = E(() => {
4461
+ var g;
4462
+ return (g = e.symbol) == null ? void 0 : g.content;
4050
4463
  });
4051
- function a() {
4052
- o || oi({
4464
+ function o() {
4465
+ a || fi({
4053
4466
  symbol: e.symbol,
4054
4467
  builderContextValue: e.builderContext
4055
- }).then((m) => {
4056
- m && r(m);
4468
+ }).then((g) => {
4469
+ g && r(g);
4057
4470
  });
4058
4471
  }
4059
4472
  return A(() => {
4060
4473
  }, []), A(() => {
4061
- a();
4474
+ o();
4062
4475
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4063
- ii,
4476
+ mi,
4064
4477
  {
4065
4478
  nonce: e.builderContext.nonce,
4066
4479
  isNestedRender: !0,
@@ -4072,13 +4485,13 @@ function ai(e) {
4072
4485
  },
4073
4486
  customComponents: Object.values(e.builderComponents),
4074
4487
  data: {
4075
- ...(d = e.symbol) == null ? void 0 : d.data,
4488
+ ...(u = e.symbol) == null ? void 0 : u.data,
4076
4489
  ...e.builderContext.localState,
4077
- ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4490
+ ...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
4078
4491
  },
4079
4492
  canTrack: e.builderContext.canTrack,
4080
4493
  model: (h = e.symbol) == null ? void 0 : h.model,
4081
- content: o,
4494
+ content: a,
4082
4495
  linkComponent: e.builderLinkComponent,
4083
4496
  blocksWrapper: t(),
4084
4497
  contentWrapper: n()
@@ -4086,15 +4499,16 @@ function ai(e) {
4086
4499
  ) });
4087
4500
  }
4088
4501
  export {
4089
- F as Blocks,
4502
+ $ as Blocks,
4090
4503
  se as BuilderContext,
4091
4504
  ot as Button,
4092
- qt as Columns,
4093
- ii as Content,
4094
- zt as Fragment,
4095
- Gt as Image,
4505
+ zt as Columns,
4506
+ mi as Content,
4507
+ Kt as Fragment,
4508
+ Qt as Image,
4096
4509
  Yt as Section,
4097
- ai as Symbol,
4098
- mn as Text,
4099
- Nn as Video
4510
+ hi as Symbol,
4511
+ Sn as Text,
4512
+ Hn as Video,
4513
+ ki as setClientUserAttributes
4100
4514
  };