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