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

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