@builder.io/sdk-react 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/lib/browser/blocks-exports.cjs +92 -64
  2. package/lib/browser/blocks-exports.mjs +1753 -1653
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-d0b98fb0.js → server-entry-231f8ecd.js} +1 -1
  6. package/lib/browser/{server-entry-8ea5d047.cjs → server-entry-bdbd3c0d.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-8ef468e5.js → accordion-b551e135.js} +1 -1
  10. package/lib/edge/{accordion-94839d7d.cjs → accordion-e3f81e74.cjs} +1 -1
  11. package/lib/edge/{blocks-548ec8c2.js → blocks-cd1feef2.js} +179 -176
  12. package/lib/edge/{blocks-7e8837dc.cjs → blocks-eb6fa21f.cjs} +3 -3
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-66c37b9c.cjs → button-5c6a9392.cjs} +1 -1
  16. package/lib/edge/{button-09f38c2e.js → button-f390f723.js} +2 -2
  17. package/lib/edge/{columns-42cbe467.js → columns-7018a027.js} +9 -9
  18. package/lib/edge/{columns-67ded4b4.cjs → columns-ad17139e.cjs} +3 -3
  19. package/lib/edge/content-variants-c72ca81f.cjs +302 -0
  20. package/lib/edge/{content-variants-5a4eecaf.js → content-variants-dc54ce4f.js} +650 -367
  21. package/lib/edge/{custom-code-cf216b27.js → custom-code-0daf1c91.js} +1 -1
  22. package/lib/edge/{custom-code-ea534e98.cjs → custom-code-e87af7b1.cjs} +1 -1
  23. package/lib/edge/{embed-12b85639.js → embed-1dfcba43.js} +1 -1
  24. package/lib/edge/{embed-7ca4af6e.cjs → embed-c695c98e.cjs} +1 -1
  25. package/lib/edge/{form-f1188ad2.js → form-5a0c89d9.js} +5 -5
  26. package/lib/edge/{form-85ea06df.cjs → form-ba54942c.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-90df5962.js → get-class-prop-name-5edacc3b.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-316a93c9.cjs → get-class-prop-name-c479656a.cjs} +1 -1
  29. package/lib/edge/{image-e38bd9e0.cjs → image-cce92f6c.cjs} +2 -2
  30. package/lib/edge/{image-acc1c00c.js → image-d87761af.js} +18 -18
  31. package/lib/edge/{img-81a7f4d7.cjs → img-6982d6eb.cjs} +1 -1
  32. package/lib/edge/{img-ee2838af.js → img-882c7222.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/{input-b8907c7d.js → input-3d4f956b.js} +1 -1
  36. package/lib/edge/{input-231ec63f.cjs → input-8c7008b5.cjs} +1 -1
  37. package/lib/edge/personalization-container-3a8dc18a.js +205 -0
  38. package/lib/edge/personalization-container-4557a50b.cjs +1 -0
  39. package/lib/edge/{select-ffee7a69.js → select-153586f8.js} +1 -1
  40. package/lib/edge/{select-b1650a75.cjs → select-2efc7503.cjs} +1 -1
  41. package/lib/edge/{server-entry-e9974799.js → server-entry-8dc3478a.js} +1 -1
  42. package/lib/edge/{server-entry-1b560ddb.cjs → server-entry-9d269960.cjs} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-fe93ec42.js → slot-d268693c.js} +3 -3
  46. package/lib/edge/{slot-ddddba8d.cjs → slot-f1f7513c.cjs} +1 -1
  47. package/lib/edge/{symbol-d9175a66.cjs → symbol-0344516c.cjs} +1 -1
  48. package/lib/edge/{symbol-c266ba83.js → symbol-378e19ee.js} +2 -2
  49. package/lib/edge/{tabs-3481a6f6.js → tabs-29ff78a0.js} +3 -3
  50. package/lib/edge/{tabs-f76f757a.cjs → tabs-4e931765.cjs} +1 -1
  51. package/lib/node/blocks-exports.cjs +92 -64
  52. package/lib/node/blocks-exports.mjs +1682 -1582
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +3 -3
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +3 -3
  57. package/lib/node/{server-entry-03fc1c6d.cjs → server-entry-916c726c.cjs} +1 -1
  58. package/lib/node/{server-entry-2b91f2d9.js → server-entry-f03c1146.js} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/lib/node/{setIvm-419a94e0.js → setIvm-044ce9e7.js} +1 -1
  62. package/lib/node/{setIvm-26e766c5.cjs → setIvm-3761bb10.cjs} +1 -1
  63. package/lib/node/setIvm.cjs +1 -1
  64. package/lib/node/setIvm.mjs +2 -2
  65. package/lib/node/{should-force-browser-runtime-in-node-fe3d9cb0.cjs → should-force-browser-runtime-in-node-e760d4f2.cjs} +1 -1
  66. package/lib/node/{should-force-browser-runtime-in-node-67506521.js → should-force-browser-runtime-in-node-f620dcdc.js} +1 -1
  67. package/package.json +2 -2
  68. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
  69. package/types/blocks/personalization-container/helpers.d.ts +24 -4
  70. package/types/blocks/personalization-container/personalization-container.types.d.ts +2 -2
  71. package/types/components/blocks/blocks-wrapper.d.ts +13 -1
  72. package/types/components/blocks/blocks.types.d.ts +1 -1
  73. package/types/constants/sdk-version.d.ts +1 -1
  74. package/lib/edge/content-variants-cf107f82.cjs +0 -137
  75. package/lib/edge/personalization-container-896a298a.js +0 -384
  76. package/lib/edge/personalization-container-95cba946.cjs +0 -138
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Qe, setupBrowserForEditing as Ye, createRegisterComponentMessage as Xe, getCookieSync as Ze, _track as pe, fetchOneEntry as Be, createEditorListener as et, serializeIncludingFunctions as ye, handleABTestingSync as tt } from "./server-entry-2b91f2d9.js";
3
- import { setClientUserAttributes as Pi } from "./server-entry-2b91f2d9.js";
4
- import { jsx as s, Fragment as P, jsxs as B } from "react/jsx-runtime";
5
- import * as nt from "react";
6
- import { createContext as Ae, useEffect as R, useState as I, useRef as L, useContext as ve, createElement as Ne } from "react";
7
- import { getFunctionArguments as it, flattenState as at, runInNode as ot, parseCode as rt, getBuilderGlobals as lt, set as We, fastClone as ue } from "./setIvm-419a94e0.js";
8
- import { shouldForceBrowserRuntimeInNode as st } from "./should-force-browser-runtime-in-node-67506521.js";
9
- const ct = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && ct.has(e.toLowerCase());
10
- function de(e) {
11
- return /* @__PURE__ */ s(P, { children: ut(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
2
+ import { TARGET as D, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as oe, isEditing as L, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-f03c1146.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-f03c1146.js";
4
+ import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
5
+ import * as ft from "react";
6
+ import { createContext as Oe, useEffect as P, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-044ce9e7.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-f620dcdc.js";
9
+ const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
+ function pe(e) {
11
+ return /* @__PURE__ */ s(R, { children: St(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
13
  const j = () => {
14
- switch (O) {
14
+ switch (D) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,7 +24,7 @@ const j = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function dt(e) {
27
+ function kt(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
@@ -39,7 +39,7 @@ function dt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- de,
42
+ pe,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function dt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = Ae({
51
+ const ve = Oe({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,87 +63,87 @@ const me = Ae({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), De = Ae({ registeredComponents: {} }), $e = (e, t, n) => {
67
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
66
+ }), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
67
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
- }, mt = ({
69
+ }, Ct = ({
70
70
  code: e,
71
71
  builder: t,
72
72
  context: n,
73
73
  event: i,
74
74
  localState: a,
75
- rootSetState: r,
76
- rootState: o
75
+ rootSetState: o,
76
+ rootState: r
77
77
  }) => {
78
- const l = it({
78
+ const l = ht({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: at({
83
- rootState: o,
82
+ state: gt({
83
+ rootState: r,
84
84
  localState: a,
85
- rootSetState: r
85
+ rootSetState: o
86
86
  })
87
87
  });
88
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
89
- }, ft = (e) => U() || st({
88
+ return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
89
+ }, Tt = (e) => K() || vt({
90
90
  shouldLogWarning: !0
91
- }) ? mt(e) : ot(e), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
92
- var t, n, i, a, r, o;
93
- return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
91
+ }) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
92
+ var t, n, i, a, o, r;
93
+ return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
94
94
  };
95
- function _({
95
+ function J({
96
96
  code: e,
97
97
  context: t,
98
98
  localState: n,
99
99
  rootState: i,
100
100
  rootSetState: a,
101
- event: r,
102
- isExpression: o = !0
101
+ event: o,
102
+ isExpression: r = !0
103
103
  }) {
104
104
  if (e.trim() === "")
105
105
  return;
106
- const l = bt(e.trim());
106
+ const l = Et(e.trim());
107
107
  if (l)
108
- return $e({
108
+ return Me({
109
109
  ...i,
110
110
  ...n
111
111
  }, l);
112
- const d = {
113
- code: rt(e, {
114
- isExpression: o
112
+ const c = {
113
+ code: yt(e, {
114
+ isExpression: r
115
115
  }),
116
- builder: lt(),
116
+ builder: pt(),
117
117
  context: t,
118
- event: r,
118
+ event: o,
119
119
  rootSetState: a,
120
120
  rootState: i,
121
121
  localState: n
122
122
  };
123
123
  try {
124
- return ft(d);
125
- } catch (c) {
126
- z.error("Failed code evaluation: " + c.message, {
124
+ return Tt(c);
125
+ } catch (u) {
126
+ Z.error("Failed code evaluation: " + u.message, {
127
127
  code: e
128
128
  });
129
129
  return;
130
130
  }
131
131
  }
132
- function pt(e, t) {
132
+ function Rt(e, t) {
133
133
  var n;
134
134
  return {
135
135
  ...(n = e.component) == null ? void 0 : n.options,
136
136
  ...e.options,
137
- ...yt(e, t)
137
+ ...Pt(e, t)
138
138
  };
139
139
  }
140
- const yt = (e, t) => {
140
+ const Pt = (e, t) => {
141
141
  var n, i;
142
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
143
  return {
144
144
  ...e.component.options,
145
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => _({
146
- code: r,
145
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => J({
146
+ code: o,
147
147
  context: t,
148
148
  localState: t.localState,
149
149
  rootState: t.rootState,
@@ -151,68 +151,68 @@ const yt = (e, t) => {
151
151
  }))
152
152
  };
153
153
  };
154
- function vt(e, ...t) {
154
+ function Vt(e, ...t) {
155
155
  const n = Object.assign({}, e);
156
156
  for (const i of t)
157
157
  delete n[i];
158
158
  return n;
159
159
  }
160
- function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
160
+ function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
161
161
  if (e == null || typeof e != "object") {
162
- t(e, (r) => {
163
- n !== null && i !== null && (n[i] = r);
162
+ t(e, (o) => {
163
+ n !== null && i !== null && (n[i] = o);
164
164
  });
165
165
  return;
166
166
  }
167
- a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
168
- t(r, (d) => {
169
- e[o] = d;
170
- }), Q(r, t, e, o, a);
171
- }) : Object.entries(e).forEach(([r, o]) => {
172
- t(o, (d) => {
173
- e[r] = d;
174
- }), Q(o, t, e, r, a);
167
+ a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
168
+ t(o, (c) => {
169
+ e[r] = c;
170
+ }), re(o, t, e, r, a);
171
+ }) : Object.entries(e).forEach(([o, r]) => {
172
+ t(r, (c) => {
173
+ e[o] = c;
174
+ }), re(r, t, e, o, a);
175
175
  }));
176
176
  }
177
- function Fe(e) {
177
+ function qe(e) {
178
178
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
179
179
  }
180
- function xt(e) {
180
+ function At(e) {
181
181
  if (!e || !Object.getOwnPropertyNames(e).length)
182
182
  return !1;
183
183
  let t = !1;
184
- return Q(e, (n) => {
185
- if (Fe(n)) {
184
+ return re(e, (n) => {
185
+ if (qe(n)) {
186
186
  t = !0;
187
187
  return;
188
188
  }
189
189
  }), t;
190
190
  }
191
- function St(e, t) {
192
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
191
+ function Bt(e, t) {
192
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
193
193
  var a;
194
- Fe(n) && i((a = n[t]) != null ? a : void 0);
194
+ qe(n) && i((a = n[t]) != null ? a : void 0);
195
195
  }), e);
196
196
  }
197
- function kt(e, t) {
197
+ function Nt(e, t) {
198
198
  var n, i;
199
- return (n = e.component) != null && n.options && xt((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 = St(e.component.options, t != null ? t : "Default")), e;
199
+ return (n = e.component) != null && n.options && At((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bt(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function ce(e) {
201
+ function be(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => ce(n));
205
+ return e.map((n) => be(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
211
211
  return t;
212
212
  }
213
- const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) => {
214
- if (Ct) {
215
- const t = ue(e);
213
+ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), Wt = (e) => {
214
+ if ($t) {
215
+ const t = ye(e);
216
216
  return {
217
217
  ...t,
218
218
  properties: {
@@ -223,7 +223,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = ce(vt(e, "children", "meta"));
226
+ const t = be(Vt(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -236,7 +236,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
236
236
  meta: e.meta
237
237
  };
238
238
  }
239
- }, wt = ({
239
+ }, Dt = ({
240
240
  block: e,
241
241
  context: t,
242
242
  localState: n,
@@ -245,170 +245,170 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
245
245
  }) => {
246
246
  if (!e.bindings)
247
247
  return e;
248
- const r = Tt(e);
249
- for (const o in e.bindings) {
250
- const l = e.bindings[o], d = _({
248
+ const o = Wt(e);
249
+ for (const r in e.bindings) {
250
+ const l = e.bindings[r], c = J({
251
251
  code: l,
252
252
  localState: n,
253
253
  rootState: i,
254
254
  rootSetState: a,
255
255
  context: t
256
256
  });
257
- We(r, o, d);
257
+ Ue(o, r, c);
258
258
  }
259
- return r;
259
+ return o;
260
260
  };
261
- function It({
261
+ function Ft({
262
262
  block: e,
263
263
  context: t,
264
264
  localState: n,
265
265
  rootState: i,
266
266
  rootSetState: a
267
267
  }) {
268
- let r = kt(e, i.locale);
269
- return r = r, wt({
270
- block: r,
268
+ let o = Nt(e, i.locale);
269
+ return o = o, Dt({
270
+ block: o,
271
271
  localState: n,
272
272
  rootState: i,
273
273
  rootSetState: a,
274
274
  context: t
275
275
  });
276
276
  }
277
- const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
- function Et(e, t, n = {}) {
279
- let i, a, r, o = null, l = 0;
280
- const d = function() {
281
- l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
277
+ const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
278
+ function Lt(e, t, n = {}) {
279
+ let i, a, o, r = null, l = 0;
280
+ const c = function() {
281
+ l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
282
282
  };
283
283
  return function() {
284
- const c = Date.now();
285
- !l && n.leading === !1 && (l = c);
286
- const h = t - (c - l);
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(d, h)), r;
284
+ const u = Date.now();
285
+ !l && n.leading === !1 && (l = u);
286
+ const f = t - (u - l);
287
+ return i = this, a = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, f)), o;
288
288
  };
289
289
  }
290
- function H(e, ...t) {
290
+ function Y(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
293
  const a = arguments[i];
294
294
  if (a != null)
295
- for (const r in a)
296
- Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
295
+ for (const o in a)
296
+ Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
297
297
  }
298
298
  return n;
299
299
  }
300
- function Rt(e) {
300
+ function Ot(e) {
301
301
  for (const t of e)
302
302
  switch (t.trigger) {
303
303
  case "pageLoad":
304
- Ue(t);
304
+ Ke(t);
305
305
  break;
306
306
  case "scrollInView":
307
- Vt(t);
307
+ Ut(t);
308
308
  break;
309
309
  }
310
310
  }
311
- function Le(e) {
311
+ function je(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
- function Oe(e, t) {
315
- const n = Pt(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 d of n)
318
- d in l || (l[d] = i[d]);
314
+ function ze(e, t) {
315
+ const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
316
+ for (const l of r)
317
+ for (const c of n)
318
+ c in l || (l[c] = i[c]);
319
319
  }
320
- function Pt(e) {
320
+ function _t(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
324
324
  t.indexOf(i) === -1 && t.push(i);
325
325
  return t;
326
326
  }
327
- function Ue(e) {
327
+ function Ke(e) {
328
328
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
329
329
  if (!t.length) {
330
- Le(e.elementId || e.id || "");
330
+ je(e.elementId || e.id || "");
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- Oe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
334
+ ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
339
339
  });
340
340
  }
341
- function Vt(e) {
341
+ function Ut(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
- Le(e.elementId || e.id || "");
344
+ je(e.elementId || e.id || "");
345
345
  return;
346
346
  }
347
347
  Array.from(t).forEach((n) => {
348
- Oe(e, n);
348
+ ze(e, n);
349
349
  let i = !1, a = !1;
350
- function r() {
350
+ function o() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
352
+ Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
353
353
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
356
356
  }
357
- const o = Et(r, 200, {
357
+ const r = Lt(o, 200, {
358
358
  leading: !1
359
359
  });
360
- function l(h) {
361
- const b = h.getBoundingClientRect(), m = window.innerHeight, u = (e.thresholdPercent || 0) / 100 * m;
362
- return b.bottom > u && b.top < m - u;
360
+ function l(f) {
361
+ const g = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
362
+ return g.bottom > d && g.top < m - d;
363
363
  }
364
- const d = e.steps[0].styles;
365
- function c() {
366
- H(n.style, d);
364
+ const c = e.steps[0].styles;
365
+ function u() {
366
+ Y(n.style, c);
367
367
  }
368
- c(), setTimeout(() => {
369
- n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
- }), document.addEventListener("scroll", o, {
368
+ u(), setTimeout(() => {
369
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
+ }), document.addEventListener("scroll", r, {
371
371
  capture: !0,
372
372
  passive: !0
373
- }), r();
373
+ }), o();
374
374
  });
375
375
  }
376
- const _e = (e) => Object.entries(e).map(([n, i]) => {
376
+ const Je = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
- return `${Z(n)}: ${i};`;
379
- }).filter(se), Bt = (e) => _e(e).join(`
380
- `), q = ({
378
+ return `${le(n)}: ${i};`;
379
+ }).filter(ge), Ht = (e) => Je(e).join(`
380
+ `), Q = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
384
384
  }) => {
385
385
  const i = `.${t} {
386
- ${Bt(n)}
386
+ ${Ht(n)}
387
387
  }`;
388
388
  return e ? `${e} {
389
389
  ${i}
390
390
  }` : i;
391
391
  };
392
- function At({
392
+ function Mt({
393
393
  style: e
394
394
  }) {
395
395
  return e;
396
396
  }
397
- const Nt = ({
397
+ const qt = ({
398
398
  block: e,
399
399
  context: t
400
- }) => qe(At({
400
+ }) => Ge(Mt({
401
401
  style: e.style || {},
402
402
  context: t,
403
403
  block: e
404
404
  }));
405
- function qe(e) {
406
- switch (O) {
405
+ function Ge(e) {
406
+ switch (D) {
407
407
  case "svelte":
408
408
  case "vue":
409
409
  case "solid":
410
410
  case "angular":
411
- return _e(e).join(" ");
411
+ return Je(e).join(" ");
412
412
  case "qwik":
413
413
  case "reactNative":
414
414
  case "react":
@@ -416,24 +416,24 @@ function qe(e) {
416
416
  return e;
417
417
  }
418
418
  }
419
- const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
419
+ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
420
420
  block: e,
421
421
  registeredComponents: t,
422
422
  model: n
423
423
  }) => {
424
- var r;
425
- const i = (r = e.component) == null ? void 0 : r.name;
424
+ var o;
425
+ const i = (o = e.component) == null ? void 0 : o.name;
426
426
  if (!i)
427
427
  return null;
428
428
  const a = t[i];
429
- if (!a || He(a, n)) {
429
+ if (!a || Qe(a, n)) {
430
430
  console.warn(`
431
431
  Could not find a registered component named "${i}".
432
432
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
433
433
  return;
434
434
  } else
435
435
  return a;
436
- }, Dt = ({
436
+ }, zt = ({
437
437
  block: e,
438
438
  context: t
439
439
  }) => {
@@ -443,7 +443,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
443
443
  } = e;
444
444
  if (!(n != null && n.collection))
445
445
  return;
446
- const a = _({
446
+ const a = J({
447
447
  code: n.collection,
448
448
  localState: t.localState,
449
449
  rootState: t.rootState,
@@ -452,41 +452,41 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
452
452
  });
453
453
  if (!Array.isArray(a))
454
454
  return;
455
- const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
- return a.map((d, c) => ({
455
+ const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
456
+ return a.map((c, u) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
- $index: c,
462
- $item: d,
463
- [o]: d,
464
- [`$${o}Index`]: c
461
+ $index: u,
462
+ $item: c,
463
+ [r]: c,
464
+ [`$${r}Index`]: u
465
465
  }
466
466
  },
467
467
  block: i
468
468
  }));
469
- }, $t = (e, t) => {
469
+ }, Kt = (e, t) => {
470
470
  var n;
471
471
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
472
472
  builderLinkComponent: t
473
473
  } : {};
474
- }, Ft = (e, t, n) => {
474
+ }, Jt = (e, t, n) => {
475
475
  var i;
476
476
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
477
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !He(o, n)))
477
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !Qe(r, n)))
478
478
  } : {};
479
- }, Lt = (e, t) => {
479
+ }, Gt = (e, t) => {
480
480
  var n;
481
481
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
482
482
  builderBlock: t
483
483
  } : {};
484
- }, Ot = (e, t) => {
484
+ }, Qt = (e, t) => {
485
485
  var n;
486
486
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
487
487
  builderContext: t
488
488
  } : {};
489
- }, xe = (e) => e.toString(), Me = {
489
+ }, Ee = (e) => e.toString(), Ye = {
490
490
  xsmall: {
491
491
  min: 0,
492
492
  default: 160,
@@ -507,8 +507,8 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
507
507
  default: 991,
508
508
  max: 1200
509
509
  }
510
- }, ne = (e, t = Me) => `@media (max-width: ${t[e].max}px)`, je = (e) => {
511
- const t = ue(Me);
510
+ }, ce = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
511
+ const t = ye(Ye);
512
512
  if (!e)
513
513
  return t;
514
514
  const {
@@ -517,26 +517,26 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
517
517
  medium: a
518
518
  } = e;
519
519
  if (n) {
520
- const d = Math.floor(n / 2);
520
+ const c = Math.floor(n / 2);
521
521
  t.xsmall = {
522
522
  max: n,
523
- min: d,
524
- default: d + 1
523
+ min: c,
524
+ default: c + 1
525
525
  };
526
526
  }
527
527
  if (!i || !a)
528
528
  return t;
529
- const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
529
+ const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
530
530
  t.small = {
531
531
  max: i,
532
- min: r,
533
- default: r + 1
532
+ min: o,
533
+ default: o + 1
534
534
  };
535
- const o = t.small.max + 1;
535
+ const r = t.small.max + 1;
536
536
  t.medium = {
537
537
  max: a,
538
- min: o,
539
- default: o + 1
538
+ min: r,
539
+ default: r + 1
540
540
  };
541
541
  const l = t.medium.max + 1;
542
542
  return t.large = {
@@ -546,7 +546,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
546
546
  default: l + 1
547
547
  }, t;
548
548
  };
549
- function K(e) {
549
+ function ee(e) {
550
550
  return /* @__PURE__ */ s(
551
551
  "style",
552
552
  {
@@ -556,67 +556,67 @@ function K(e) {
556
556
  }
557
557
  );
558
558
  }
559
- function Ut(e) {
559
+ function Yt(e) {
560
560
  function t() {
561
561
  const i = e.block;
562
- return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
562
+ return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
- var C, V, w, S, f;
566
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = je(
567
- ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
- ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, m = i.id;
565
+ var k, V, T, I, b;
566
+ const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Xe(
567
+ ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
568
+ ), l = !!((T = (V = o == null ? void 0 : o.meta) == null ? void 0 : V.breakpoints) != null && T.xsmall), c = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, f = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, m = i.id;
569
569
  if (!m)
570
570
  return "";
571
- const x = d ? q({
571
+ const v = c ? Q({
572
572
  className: m,
573
- styles: d
574
- }) : "", u = c ? q({
573
+ styles: c
574
+ }) : "", d = u ? Q({
575
575
  className: m,
576
- styles: c,
577
- mediaQuery: ne(
576
+ styles: u,
577
+ mediaQuery: ce(
578
578
  "medium",
579
- o
579
+ r
580
580
  )
581
- }) : "", g = h ? q({
581
+ }) : "", h = f ? Q({
582
582
  className: m,
583
- styles: h,
584
- mediaQuery: ne(
583
+ styles: f,
584
+ mediaQuery: ce(
585
585
  "small",
586
- o
586
+ r
587
587
  )
588
- }) : "", v = b && l ? q({
588
+ }) : "", p = g && l ? Q({
589
589
  className: m,
590
- styles: b,
591
- mediaQuery: ne(
590
+ styles: g,
591
+ mediaQuery: ce(
592
592
  "xsmall",
593
- o
593
+ r
594
594
  )
595
- }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
596
- let k = "";
597
- if (p) {
598
- const y = ((f = (S = p.steps) == null ? void 0 : S[1]) == null ? void 0 : f.styles) || {};
599
- k = q({
595
+ }) : "", y = i.animations && i.animations.find((S) => S.trigger === "hover");
596
+ let x = "";
597
+ if (y) {
598
+ const S = ((b = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : b.styles) || {};
599
+ x = Q({
600
600
  className: `${m}:hover`,
601
601
  styles: {
602
- ...y,
603
- transition: `all ${p.duration}s ${Z(
604
- p.easing
602
+ ...S,
603
+ transition: `all ${y.duration}s ${le(
604
+ y.easing
605
605
  )}`,
606
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
606
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
607
607
  }
608
608
  }) || "";
609
609
  }
610
610
  return [
611
- x,
612
- u,
613
- g,
614
611
  v,
615
- k
612
+ d,
613
+ h,
614
+ p,
615
+ x
616
616
  ].join(" ");
617
617
  }
618
- return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
619
- K,
618
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
619
+ ee,
620
620
  {
621
621
  id: "builderio-block",
622
622
  styles: n(),
@@ -624,10 +624,10 @@ function Ut(e) {
624
624
  }
625
625
  ) }) : null });
626
626
  }
627
- function _t(e) {
627
+ function Xt(e) {
628
628
  return e.charAt(0).toUpperCase() + e.slice(1);
629
629
  }
630
- const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
630
+ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => J({
631
631
  code: e,
632
632
  context: t.context,
633
633
  localState: t.localState,
@@ -636,66 +636,66 @@ const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
636
636
  event: n,
637
637
  isExpression: !1
638
638
  });
639
- function ze(e) {
639
+ function Ze(e) {
640
640
  var i;
641
641
  const t = {}, n = (i = e.block.actions) != null ? i : {};
642
642
  for (const a in n) {
643
643
  if (!n.hasOwnProperty(a))
644
644
  continue;
645
- const r = n[a];
646
- let o = qt(a);
645
+ const o = n[a];
646
+ let r = Zt(a);
647
647
  if (e.stripPrefix)
648
- switch (O) {
648
+ switch (D) {
649
649
  case "vue":
650
- o = o.replace("v-on:", "");
650
+ r = r.replace("v-on:", "");
651
651
  break;
652
652
  case "svelte":
653
- o = o.replace("on:", "");
653
+ r = r.replace("on:", "");
654
654
  break;
655
655
  }
656
- t[o] = Ht(r, e);
656
+ t[r] = en(o, e);
657
657
  }
658
658
  return t;
659
659
  }
660
- function Mt({
660
+ function tn({
661
661
  properties: e
662
662
  }) {
663
663
  return e;
664
664
  }
665
- const jt = (e) => ({
665
+ const nn = (e) => ({
666
666
  href: e.href
667
667
  });
668
- function fe({
668
+ function xe({
669
669
  block: e,
670
670
  context: t
671
671
  }) {
672
672
  var i;
673
673
  const n = {
674
- ...jt(e),
674
+ ...nn(e),
675
675
  ...e.properties,
676
676
  "builder-id": e.id,
677
- style: Nt({
677
+ style: qt({
678
678
  block: e,
679
679
  context: t
680
680
  }),
681
681
  [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
682
682
  };
683
- return Mt({
683
+ return tn({
684
684
  properties: n,
685
685
  context: t,
686
686
  block: e
687
687
  });
688
688
  }
689
- function zt(e) {
689
+ function an(e) {
690
690
  return /* @__PURE__ */ s(
691
- de,
691
+ pe,
692
692
  {
693
693
  TagName: e.Wrapper,
694
- attributes: fe({
694
+ attributes: xe({
695
695
  block: e.block,
696
696
  context: e.context
697
697
  }),
698
- actionAttributes: ze({
698
+ actionAttributes: Ze({
699
699
  block: e.block,
700
700
  rootState: e.context.rootState,
701
701
  rootSetState: e.context.rootSetState,
@@ -707,20 +707,20 @@ function zt(e) {
707
707
  }
708
708
  );
709
709
  }
710
- function Kt(e) {
711
- return R(() => {
712
- }, []), /* @__PURE__ */ s(P, { children: e.children });
710
+ function rn(e) {
711
+ return P(() => {
712
+ }, []), /* @__PURE__ */ s(R, { children: e.children });
713
713
  }
714
- function Jt(e) {
714
+ function on(e) {
715
715
  var i, a;
716
- I(() => 0);
716
+ C(() => 0);
717
717
  function t() {
718
718
  return e.includeBlockProps ? {
719
- ...fe({
719
+ ...xe({
720
720
  block: e.block,
721
721
  context: e.context
722
722
  }),
723
- ...ze({
723
+ ...Ze({
724
724
  block: e.block,
725
725
  rootState: e.context.rootState,
726
726
  rootSetState: e.context.rootSetState,
@@ -732,9 +732,9 @@ function Jt(e) {
732
732
  function n() {
733
733
  return e.wrapperProps;
734
734
  }
735
- return R(() => {
736
- }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
737
- Kt,
735
+ return P(() => {
736
+ }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
737
+ rn,
738
738
  {
739
739
  load: e.Wrapper.load,
740
740
  fallback: e.Wrapper.fallback,
@@ -744,14 +744,14 @@ function Jt(e) {
744
744
  }
745
745
  ) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
746
746
  }
747
- const Gt = ({
747
+ const ln = ({
748
748
  componentOptions: e,
749
749
  builderBlock: t,
750
750
  context: n,
751
751
  componentRef: i,
752
752
  includeBlockProps: a,
753
- isInteractive: r,
754
- contextValue: o
753
+ isInteractive: o,
754
+ contextValue: r
755
755
  }) => {
756
756
  const l = {
757
757
  ...e,
@@ -760,13 +760,13 @@ const Gt = ({
760
760
  * component itself directly. Otherwise, they are provided to the wrapper element.
761
761
  */
762
762
  ...a ? {
763
- attributes: fe({
763
+ attributes: xe({
764
764
  block: t,
765
- context: o
765
+ context: r
766
766
  })
767
767
  } : {}
768
768
  };
769
- return r ? {
769
+ return o ? {
770
770
  Wrapper: i,
771
771
  block: t,
772
772
  context: n,
@@ -774,17 +774,17 @@ const Gt = ({
774
774
  includeBlockProps: a
775
775
  } : l;
776
776
  };
777
- function Se(e) {
777
+ function Re(e) {
778
778
  var i;
779
- I(() => !1);
780
- const [t, n] = I(
781
- () => e.isInteractive ? Jt : e.componentRef
779
+ C(() => !1);
780
+ const [t, n] = C(
781
+ () => e.isInteractive ? on : e.componentRef
782
782
  );
783
- return R(() => {
784
- }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
783
+ return P(() => {
784
+ }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
785
785
  t,
786
786
  {
787
- ...Gt({
787
+ ...ln({
788
788
  componentOptions: e.componentOptions,
789
789
  builderBlock: e.builderBlock,
790
790
  context: e.context,
@@ -795,7 +795,7 @@ function Se(e) {
795
795
  contextValue: e.context
796
796
  }),
797
797
  children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
798
- ee,
798
+ se,
799
799
  {
800
800
  block: a,
801
801
  context: e.context,
@@ -807,12 +807,12 @@ function Se(e) {
807
807
  }
808
808
  ) }) : null });
809
809
  }
810
- function ke(e) {
811
- const [t, n] = I(() => e.repeatContext);
812
- return R(() => {
810
+ function Pe(e) {
811
+ const [t, n] = C(() => e.repeatContext);
812
+ return P(() => {
813
813
  n(e.repeatContext);
814
- }, [e.repeatContext]), /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
815
- ee,
814
+ }, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
815
+ se,
816
816
  {
817
817
  block: e.block,
818
818
  context: t,
@@ -821,65 +821,65 @@ function ke(e) {
821
821
  }
822
822
  ) });
823
823
  }
824
- function ee(e) {
825
- var h, b, m, x;
824
+ function se(e) {
825
+ var f, g, m, v;
826
826
  function t() {
827
- return Dt({
827
+ return zt({
828
828
  block: e.block,
829
829
  context: e.context
830
830
  });
831
831
  }
832
- const [n, i] = I(() => ({
832
+ const [n, i] = C(() => ({
833
833
  value: null,
834
834
  update: !1
835
835
  }));
836
836
  function a() {
837
- var g;
838
- if (n.value && !n.update && !X())
837
+ var h;
838
+ if (n.value && !n.update && !oe())
839
839
  return n.value;
840
- const u = (g = e.block.repeat) != null && g.collection ? e.block : It({
840
+ const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
841
841
  block: e.block,
842
842
  localState: e.context.localState,
843
843
  rootState: e.context.rootState,
844
844
  rootSetState: e.context.rootSetState,
845
845
  context: e.context.context
846
846
  });
847
- return n.value = u, n.update = !1, u;
847
+ return n.value = d, n.update = !1, d;
848
848
  }
849
- function r() {
850
- return Wt({
849
+ function o() {
850
+ return jt({
851
851
  block: a(),
852
852
  registeredComponents: e.registeredComponents,
853
853
  model: e.context.model
854
854
  });
855
855
  }
856
- function o() {
857
- var g;
858
- return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
856
+ function r() {
857
+ var h;
858
+ return e.block.tagName === "a" || ((h = a().properties) == null ? void 0 : h.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
859
859
  }
860
860
  function l() {
861
- var v, p;
862
- if ((v = e.block.repeat) != null && v.collection)
863
- return !!((p = t == null ? void 0 : t()) != null && p.length);
864
- const u = "hide" in a() ? a().hide : !1;
865
- return ("show" in a() ? a().show : !0) && !u;
866
- }
867
- function d() {
868
- var g, v;
869
- return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (v = a().children) != null ? v : [] : [];
861
+ var p, y;
862
+ if ((p = e.block.repeat) != null && p.collection)
863
+ return !!((y = t == null ? void 0 : t()) != null && y.length);
864
+ const d = "hide" in a() ? a().hide : !1;
865
+ return ("show" in a() ? a().show : !0) && !d;
870
866
  }
871
867
  function c() {
872
- var u, g, v, p;
868
+ var h, p;
869
+ return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = a().children) != null ? p : [] : [];
870
+ }
871
+ function u() {
872
+ var d, h, p, y;
873
873
  return {
874
- blockChildren: (u = a().children) != null ? u : [],
875
- componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
874
+ blockChildren: (d = a().children) != null ? d : [],
875
+ componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
876
876
  componentOptions: {
877
- ...pt(a(), e.context),
878
- ...Lt(r(), a()),
879
- ...Ot(r(), e.context),
880
- ...$t(r(), e.linkComponent),
881
- ...Ft(
882
- r(),
877
+ ...Rt(a(), e.context),
878
+ ...Gt(o(), a()),
879
+ ...Qt(o(), e.context),
880
+ ...Kt(o(), e.linkComponent),
881
+ ...Jt(
882
+ o(),
883
883
  e.registeredComponents,
884
884
  e.context.model
885
885
  )
@@ -888,109 +888,109 @@ function ee(e) {
888
888
  linkComponent: e.linkComponent,
889
889
  registeredComponents: e.registeredComponents,
890
890
  builderBlock: a(),
891
- includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
892
- isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && O === "rsc")
891
+ includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
892
+ isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && D === "rsc")
893
893
  };
894
894
  }
895
- return R(() => {
896
- const u = a().id, g = a().animations;
897
- g && u && Rt(
898
- g.map((v) => ({
899
- ...v,
900
- elementId: u
895
+ return P(() => {
896
+ const d = a().id, h = a().animations;
897
+ h && d && Ot(
898
+ h.map((p) => ({
899
+ ...p,
900
+ elementId: d
901
901
  }))
902
902
  );
903
- }, []), R(() => {
903
+ }, []), P(() => {
904
904
  n.update = !0;
905
- }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ B(P, { children: [
906
- /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
907
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((u, g) => /* @__PURE__ */ s(
908
- ke,
905
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
906
+ /* @__PURE__ */ s(Yt, { block: a(), context: e.context }),
907
+ (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
908
+ Pe,
909
909
  {
910
- repeatContext: u.context,
911
- block: u.block,
910
+ repeatContext: d.context,
911
+ block: d.block,
912
912
  registeredComponents: e.registeredComponents,
913
913
  linkComponent: e.linkComponent
914
914
  },
915
- xe(g)
915
+ Ee(h)
916
916
  )) }) : /* @__PURE__ */ s(
917
- Se,
917
+ Re,
918
918
  {
919
- componentRef: c().componentRef,
920
- componentOptions: c().componentOptions,
921
- blockChildren: c().blockChildren,
922
- context: c().context,
923
- registeredComponents: c().registeredComponents,
924
- linkComponent: c().linkComponent,
925
- builderBlock: c().builderBlock,
926
- includeBlockProps: c().includeBlockProps,
927
- isInteractive: c().isInteractive
919
+ componentRef: u().componentRef,
920
+ componentOptions: u().componentOptions,
921
+ blockChildren: u().blockChildren,
922
+ context: u().context,
923
+ registeredComponents: u().registeredComponents,
924
+ linkComponent: u().linkComponent,
925
+ builderBlock: u().builderBlock,
926
+ includeBlockProps: u().includeBlockProps,
927
+ isInteractive: u().isInteractive
928
928
  }
929
- ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (m = t()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
930
- ke,
929
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, h) => /* @__PURE__ */ s(
930
+ Pe,
931
931
  {
932
- repeatContext: u.context,
933
- block: u.block,
932
+ repeatContext: d.context,
933
+ block: d.block,
934
934
  registeredComponents: e.registeredComponents,
935
935
  linkComponent: e.linkComponent
936
936
  },
937
- xe(g)
938
- )) }) : /* @__PURE__ */ B(
939
- zt,
937
+ Ee(h)
938
+ )) }) : /* @__PURE__ */ $(
939
+ an,
940
940
  {
941
- Wrapper: o(),
941
+ Wrapper: r(),
942
942
  block: a(),
943
943
  context: e.context,
944
944
  children: [
945
945
  /* @__PURE__ */ s(
946
- Se,
946
+ Re,
947
947
  {
948
- componentRef: c().componentRef,
949
- componentOptions: c().componentOptions,
950
- blockChildren: c().blockChildren,
951
- context: c().context,
952
- registeredComponents: c().registeredComponents,
953
- linkComponent: c().linkComponent,
954
- builderBlock: c().builderBlock,
955
- includeBlockProps: c().includeBlockProps,
956
- isInteractive: c().isInteractive
948
+ componentRef: u().componentRef,
949
+ componentOptions: u().componentOptions,
950
+ blockChildren: u().blockChildren,
951
+ context: u().context,
952
+ registeredComponents: u().registeredComponents,
953
+ linkComponent: u().linkComponent,
954
+ builderBlock: u().builderBlock,
955
+ includeBlockProps: u().includeBlockProps,
956
+ isInteractive: u().isInteractive
957
957
  }
958
958
  ),
959
- (b = d()) == null ? void 0 : b.map((u) => /* @__PURE__ */ s(
960
- ee,
959
+ (g = c()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
960
+ se,
961
961
  {
962
- block: u,
962
+ block: d,
963
963
  registeredComponents: e.registeredComponents,
964
964
  linkComponent: e.linkComponent,
965
965
  context: e.context
966
966
  },
967
- u.id
967
+ d.id
968
968
  ))
969
969
  ]
970
970
  }
971
971
  ) })
972
972
  ] }) : null });
973
973
  }
974
- function Qt(e) {
975
- const t = L(null);
976
- I(() => !1);
974
+ function sn(e) {
975
+ const t = H(null);
976
+ C(() => !1);
977
977
  function n() {
978
- var o;
978
+ var r;
979
979
  return [
980
980
  "builder-blocks",
981
- (o = e.blocks) != null && o.length ? "" : "no-blocks",
981
+ (r = e.blocks) != null && r.length ? "" : "no-blocks",
982
982
  e.classNameProp
983
983
  ].filter(Boolean).join(" ");
984
984
  }
985
985
  function i() {
986
986
  if (!e.path)
987
987
  return;
988
- const o = "this.", l = "component.options.";
989
- return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
988
+ const r = "this.", l = "component.options.";
989
+ return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
990
990
  }
991
991
  function a() {
992
- var o, l;
993
- N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
992
+ var r, l;
993
+ L() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
994
994
  {
995
995
  type: "builder.clickEmptyBlocks",
996
996
  data: {
@@ -1001,9 +1001,9 @@ function Qt(e) {
1001
1001
  "*"
1002
1002
  ));
1003
1003
  }
1004
- function r() {
1005
- var o, l;
1006
- N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
1004
+ function o() {
1005
+ var r, l;
1006
+ L() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
1007
1007
  {
1008
1008
  type: "builder.hoverEmptyBlocks",
1009
1009
  data: {
@@ -1014,60 +1014,63 @@ function Qt(e) {
1014
1014
  "*"
1015
1015
  ));
1016
1016
  }
1017
- return R(() => {
1018
- }, []), R(() => {
1019
- }, [e.blocks]), /* @__PURE__ */ B(P, { children: [
1017
+ return P(() => {
1018
+ }, []), P(() => {
1019
+ }, [e.blocks]), /* @__PURE__ */ $(R, { children: [
1020
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1021
+ display: flex;
1022
+ flex-direction: column;
1023
+ align-items: stretch;
1024
+ }` }),
1020
1025
  /* @__PURE__ */ s(
1021
1026
  e.BlocksWrapper,
1022
1027
  {
1023
1028
  ref: t,
1024
- className: n() + " props-blocks-wrapper-14802cff",
1029
+ className: n() + " props-blocks-wrapper-8834791c",
1025
1030
  "builder-path": i(),
1026
1031
  "builder-parent-id": e.parent,
1027
1032
  style: e.styleProp,
1028
- onClick: (o) => a(),
1029
- onMouseEnter: (o) => r(),
1030
- onKeyPress: (o) => a(),
1033
+ onClick: (r) => a(),
1034
+ onMouseEnter: (r) => o(),
1035
+ onKeyPress: (r) => a(),
1031
1036
  ...e.BlocksWrapperProps,
1032
1037
  children: e.children
1033
1038
  }
1034
- ),
1035
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-14802cff {
1036
- display: flex;
1037
- flex-direction: column;
1038
- align-items: stretch;
1039
- }` })
1039
+ )
1040
1040
  ] });
1041
1041
  }
1042
- function $(e) {
1043
- var i, a, r;
1044
- const t = ve(me), n = ve(De);
1045
- return /* @__PURE__ */ s(
1046
- Qt,
1042
+ function _(e) {
1043
+ var i, a, o;
1044
+ const t = we(ve), n = we(He);
1045
+ return /* @__PURE__ */ $(
1046
+ sn,
1047
1047
  {
1048
1048
  blocks: e.blocks,
1049
1049
  parent: e.parent,
1050
1050
  path: e.path,
1051
1051
  styleProp: e.styleProp,
1052
+ BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1052
1053
  classNameProp: e.className,
1053
- BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1054
- BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1055
- children: e.blocks ? /* @__PURE__ */ s(P, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1056
- ee,
1057
- {
1058
- block: o,
1059
- linkComponent: e.linkComponent,
1060
- context: e.context || t,
1061
- registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1062
- },
1063
- o.id
1064
- )) }) : null
1054
+ BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1055
+ children: [
1056
+ e.children,
1057
+ e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
1058
+ se,
1059
+ {
1060
+ block: r,
1061
+ linkComponent: e.linkComponent,
1062
+ context: e.context || t,
1063
+ registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
1064
+ },
1065
+ r.id
1066
+ )) }) : null
1067
+ ]
1065
1068
  }
1066
1069
  );
1067
1070
  }
1068
- const Yt = (e) => `builder-columns ${e}-breakpoints`;
1069
- function Xt(e) {
1070
- var g, v;
1071
+ const cn = (e) => `builder-columns ${e}-breakpoints`;
1072
+ function un(e) {
1073
+ var h, p;
1071
1074
  function t() {
1072
1075
  return typeof e.space == "number" ? e.space || 0 : 20;
1073
1076
  }
@@ -1077,77 +1080,77 @@ function Xt(e) {
1077
1080
  function i() {
1078
1081
  return e.stackColumnsAt || "tablet";
1079
1082
  }
1080
- function a(p) {
1081
- return p.link ? e.builderLinkComponent || "a" : "div";
1083
+ function a(y) {
1084
+ return y.link ? e.builderLinkComponent || "a" : "div";
1082
1085
  }
1083
- function r(p) {
1084
- var k;
1085
- return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
1086
+ function o(y) {
1087
+ var x;
1088
+ return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1086
1089
  }
1087
- function o(p) {
1088
- const k = r(p), C = t() * (n().length - 1) * (k / 100);
1089
- return `calc(${k}% - ${C}px)`;
1090
+ function r(y) {
1091
+ const x = o(y), k = t() * (n().length - 1) * (x / 100);
1092
+ return `calc(${x}% - ${k}px)`;
1090
1093
  }
1091
1094
  function l({
1092
- stackedStyle: p,
1093
- desktopStyle: k
1095
+ stackedStyle: y,
1096
+ desktopStyle: x
1094
1097
  }) {
1095
- return i() === "tablet" ? p : k;
1098
+ return i() === "tablet" ? y : x;
1096
1099
  }
1097
- function d({
1098
- stackedStyle: p,
1099
- desktopStyle: k
1100
+ function c({
1101
+ stackedStyle: y,
1102
+ desktopStyle: x
1100
1103
  }) {
1101
- return i() === "never" ? k : p;
1104
+ return i() === "never" ? x : y;
1102
1105
  }
1103
- function c() {
1106
+ function u() {
1104
1107
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1105
1108
  }
1106
- function h() {
1109
+ function f() {
1107
1110
  return {
1108
- "--flex-dir": c(),
1111
+ "--flex-dir": u(),
1109
1112
  "--flex-dir-tablet": l({
1110
- stackedStyle: c(),
1113
+ stackedStyle: u(),
1111
1114
  desktopStyle: "row"
1112
1115
  })
1113
1116
  };
1114
1117
  }
1115
- function b(p) {
1116
- const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", S = 0;
1118
+ function g(y) {
1119
+ const x = y === 0 ? 0 : t(), k = r(y), V = `${x}px`, T = "100%", I = 0;
1117
1120
  return {
1118
1121
  ...{
1119
1122
  display: "flex",
1120
1123
  flexDirection: "column",
1121
1124
  alignItems: "stretch"
1122
1125
  },
1123
- width: C,
1126
+ width: k,
1124
1127
  ["marginLeft"]: V,
1125
- "--column-width-mobile": d({
1126
- stackedStyle: w,
1127
- desktopStyle: C
1128
+ "--column-width-mobile": c({
1129
+ stackedStyle: T,
1130
+ desktopStyle: k
1128
1131
  }),
1129
- "--column-margin-left-mobile": d({
1130
- stackedStyle: S,
1132
+ "--column-margin-left-mobile": c({
1133
+ stackedStyle: I,
1131
1134
  desktopStyle: V
1132
1135
  }),
1133
1136
  "--column-width-tablet": l({
1134
- stackedStyle: w,
1135
- desktopStyle: C
1137
+ stackedStyle: T,
1138
+ desktopStyle: k
1136
1139
  }),
1137
1140
  "--column-margin-left-tablet": l({
1138
- stackedStyle: S,
1141
+ stackedStyle: I,
1139
1142
  desktopStyle: V
1140
1143
  })
1141
1144
  };
1142
1145
  }
1143
- function m(p) {
1144
- var C, V;
1145
- return je(
1146
- ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1147
- )[p].max;
1146
+ function m(y) {
1147
+ var k, V;
1148
+ return Xe(
1149
+ ((V = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints) || {}
1150
+ )[y].max;
1148
1151
  }
1149
- function x() {
1150
- const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1152
+ function v() {
1153
+ const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1151
1154
  return `
1152
1155
  @media (max-width: ${m("medium")}px) {
1153
1156
  .${e.builderBlock.id}-breakpoints {
@@ -1155,7 +1158,7 @@ function Xt(e) {
1155
1158
  align-items: stretch;
1156
1159
  }
1157
1160
 
1158
- ${p} {
1161
+ ${y} {
1159
1162
  width: var(--column-width-tablet) !important;
1160
1163
  margin-left: var(--column-margin-left-tablet) !important;
1161
1164
  }
@@ -1167,139 +1170,156 @@ function Xt(e) {
1167
1170
  align-items: stretch;
1168
1171
  }
1169
1172
 
1170
- ${p} {
1173
+ ${y} {
1171
1174
  width: var(--column-width-mobile) !important;
1172
1175
  margin-left: var(--column-margin-left-mobile) !important;
1173
1176
  }
1174
1177
  },
1175
1178
  `;
1176
1179
  }
1177
- function u(p, k) {
1180
+ function d(y, x) {
1178
1181
  return {
1179
- ...p.link ? {
1180
- href: p.link
1182
+ ...y.link ? {
1183
+ href: y.link
1181
1184
  } : {},
1182
1185
  [j()]: "builder-column",
1183
- style: qe(b(k))
1186
+ style: Ge(g(x))
1184
1187
  };
1185
1188
  }
1186
- return /* @__PURE__ */ B(P, { children: [
1187
- /* @__PURE__ */ B(
1189
+ return /* @__PURE__ */ $(R, { children: [
1190
+ /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1191
+ display: flex;
1192
+ line-height: normal;
1193
+ height: 100%;
1194
+ }` }),
1195
+ /* @__PURE__ */ $(
1188
1196
  "div",
1189
1197
  {
1190
- className: Yt((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1191
- style: h(),
1198
+ className: cn((h = e.builderBlock) == null ? void 0 : h.id) + " div-0369db37",
1199
+ style: f(),
1192
1200
  children: [
1193
1201
  /* @__PURE__ */ s(
1194
- K,
1202
+ ee,
1195
1203
  {
1196
1204
  id: "builderio-columns",
1197
- styles: x(),
1205
+ styles: v(),
1198
1206
  nonce: e.builderContext.nonce
1199
1207
  }
1200
1208
  ),
1201
- (v = e.columns) == null ? void 0 : v.map((p, k) => /* @__PURE__ */ s(
1202
- de,
1209
+ (p = e.columns) == null ? void 0 : p.map((y, x) => /* @__PURE__ */ s(
1210
+ pe,
1203
1211
  {
1204
- TagName: a(p),
1212
+ TagName: a(y),
1205
1213
  actionAttributes: {},
1206
- attributes: u(p, k),
1214
+ attributes: d(y, x),
1207
1215
  children: /* @__PURE__ */ s(
1208
- $,
1216
+ _,
1209
1217
  {
1210
- path: `columns.${k}.blocks`,
1218
+ path: `columns.${x}.blocks`,
1211
1219
  parent: e.builderBlock.id,
1212
1220
  context: e.builderContext,
1213
1221
  registeredComponents: e.builderComponents,
1214
1222
  linkComponent: e.builderLinkComponent,
1215
- blocks: p.blocks,
1223
+ blocks: y.blocks,
1216
1224
  styleProp: {
1217
1225
  flexGrow: "1"
1218
1226
  }
1219
1227
  }
1220
1228
  )
1221
1229
  },
1222
- k
1230
+ x
1223
1231
  ))
1224
1232
  ]
1225
1233
  }
1226
- ),
1227
- /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1228
- display: flex;
1229
- line-height: normal;
1230
- height: 100%;
1231
- }` })
1234
+ )
1232
1235
  ] });
1233
1236
  }
1234
- function Zt(e) {
1237
+ function dn(e) {
1235
1238
  return /* @__PURE__ */ s("span", { children: e.children });
1236
1239
  }
1237
- function Ce(e) {
1240
+ function Ve(e) {
1238
1241
  return e.replace(/http(s)?:/, "");
1239
1242
  }
1240
- function en(e = "", t, n) {
1243
+ function mn(e = "", t, n) {
1241
1244
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
1242
1245
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
1243
1246
  }
1244
- function tn(e, t) {
1247
+ function fn(e, t) {
1245
1248
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1246
1249
  return e;
1247
1250
  if (t === "master")
1248
- return Ce(e);
1251
+ return Ve(e);
1249
1252
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1250
1253
  if (n) {
1251
- const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1252
- return Ce(`${i[0]}_${r}${a}`);
1254
+ const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
1255
+ return Ve(`${i[0]}_${o}${a}`);
1253
1256
  }
1254
1257
  return null;
1255
1258
  }
1256
- function ie(e) {
1259
+ function ue(e) {
1257
1260
  if (!e)
1258
1261
  return e;
1259
1262
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1260
1263
  if (e.match(/builder\.io/)) {
1261
1264
  let n = e;
1262
1265
  const i = Number(e.split("?width=")[1]);
1263
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
1266
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
1264
1267
  }
1265
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1268
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1266
1269
  }
1267
- function nn(e) {
1268
- var a, r, o, l, d, c;
1270
+ function hn(e) {
1271
+ var a, o, r, l, c, u;
1269
1272
  function t() {
1270
1273
  var m;
1271
- const b = e.image || e.src;
1272
- if (!b || // We can auto add srcset for cdn.builder.io and shopify
1274
+ const g = e.image || e.src;
1275
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1273
1276
  // images, otherwise you can supply this prop manually
1274
- !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1277
+ !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1275
1278
  return e.srcset;
1276
1279
  if (!e.noWebp) {
1277
1280
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1278
1281
  if (!e.srcset.includes(e.image.split("?")[0]))
1279
- return console.debug("Removed given srcset"), ie(b);
1282
+ return console.debug("Removed given srcset"), ue(g);
1280
1283
  } else if (e.image && !e.srcset)
1281
- return ie(b);
1282
- return ie(b);
1284
+ return ue(g);
1285
+ return ue(g);
1283
1286
  }
1284
1287
  }
1285
1288
  function n() {
1286
- var h;
1287
- return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1289
+ var f;
1290
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1288
1291
  }
1289
1292
  function i() {
1290
- const h = {
1293
+ const f = {
1291
1294
  position: "absolute",
1292
1295
  height: "100%",
1293
1296
  width: "100%",
1294
1297
  left: "0px",
1295
1298
  top: "0px"
1296
1299
  };
1297
- return e.aspectRatio ? h : void 0;
1300
+ return e.aspectRatio ? f : void 0;
1298
1301
  }
1299
- return R(() => {
1300
- }, []), /* @__PURE__ */ B(P, { children: [
1301
- /* @__PURE__ */ B(P, { children: [
1302
- /* @__PURE__ */ B("picture", { children: [
1302
+ return P(() => {
1303
+ }, []), /* @__PURE__ */ $(R, { children: [
1304
+ /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1305
+ opacity: 1;
1306
+ transition: opacity 0.2s ease-in-out;
1307
+ }.div-3cc22d08 {
1308
+ width: 100%;
1309
+ pointer-events: none;
1310
+ font-size: 0;
1311
+ }.div-3cc22d08-2 {
1312
+ display: flex;
1313
+ flex-direction: column;
1314
+ align-items: stretch;
1315
+ position: absolute;
1316
+ top: 0;
1317
+ left: 0;
1318
+ width: 100%;
1319
+ height: 100%;
1320
+ }` }),
1321
+ /* @__PURE__ */ $(R, { children: [
1322
+ /* @__PURE__ */ $("picture", { children: [
1303
1323
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1304
1324
  /* @__PURE__ */ s(
1305
1325
  "img",
@@ -1321,7 +1341,7 @@ function nn(e) {
1321
1341
  }
1322
1342
  )
1323
1343
  ] }),
1324
- e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1344
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
1325
1345
  "div",
1326
1346
  {
1327
1347
  className: "builder-image-sizer div-3cc22d08",
@@ -1330,29 +1350,12 @@ function nn(e) {
1330
1350
  }
1331
1351
  }
1332
1352
  ) : null,
1333
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1334
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1335
- ] }),
1336
- /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1337
- opacity: 1;
1338
- transition: opacity 0.2s ease-in-out;
1339
- }.div-3cc22d08 {
1340
- width: 100%;
1341
- pointer-events: none;
1342
- font-size: 0;
1343
- }.div-3cc22d08-2 {
1344
- display: flex;
1345
- flex-direction: column;
1346
- align-items: stretch;
1347
- position: absolute;
1348
- top: 0;
1349
- left: 0;
1350
- width: 100%;
1351
- height: 100%;
1352
- }` })
1353
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1354
+ !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1355
+ ] })
1353
1356
  ] });
1354
1357
  }
1355
- function an(e) {
1358
+ function gn(e) {
1356
1359
  return /* @__PURE__ */ s(
1357
1360
  "section",
1358
1361
  {
@@ -1373,96 +1376,361 @@ function an(e) {
1373
1376
  }
1374
1377
  );
1375
1378
  }
1376
- const ae = {
1377
- "@type": "@builder.io/sdk:Element",
1378
- layerName: "Accordion item title",
1379
- responsiveStyles: {
1380
- large: {
1381
- marginTop: "10px",
1382
- position: "relative",
1383
- display: "flex",
1384
- alignItems: "stretch",
1385
- flexDirection: "column",
1386
- paddingBottom: "10px"
1387
- }
1388
- },
1389
- children: [{
1390
- "@type": "@builder.io/sdk:Element",
1391
- responsiveStyles: {
1392
- large: {
1393
- textAlign: "left",
1394
- display: "flex",
1395
- flexDirection: "column"
1379
+ function bn(e, t, n, i) {
1380
+ function a(u) {
1381
+ return typeof u == "string";
1382
+ }
1383
+ function o(u) {
1384
+ return typeof u == "number";
1385
+ }
1386
+ function r(u, f) {
1387
+ return (() => {
1388
+ const m = f.property, v = f.operator;
1389
+ let d = f.value;
1390
+ if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1391
+ return !0;
1392
+ if (Array.isArray(d))
1393
+ return v === "isNot" ? d.every((p) => r(u, {
1394
+ property: m,
1395
+ operator: v,
1396
+ value: p
1397
+ })) : !!d.find((p) => r(u, {
1398
+ property: m,
1399
+ operator: v,
1400
+ value: p
1401
+ }));
1402
+ const h = u[m];
1403
+ if (Array.isArray(h))
1404
+ return h.includes(d);
1405
+ switch (v) {
1406
+ case "is":
1407
+ return h === d;
1408
+ case "isNot":
1409
+ return h !== d;
1410
+ case "contains":
1411
+ return (a(h) || Array.isArray(h)) && h.includes(String(d));
1412
+ case "startsWith":
1413
+ return a(h) && h.startsWith(String(d));
1414
+ case "endsWith":
1415
+ return a(h) && h.endsWith(String(d));
1416
+ case "greaterThan":
1417
+ return o(h) && o(d) && h > d;
1418
+ case "lessThan":
1419
+ return o(h) && o(d) && h < d;
1420
+ case "greaterThanOrEqualTo":
1421
+ return o(h) && o(d) && h >= d;
1422
+ case "lessThanOrEqualTo":
1423
+ return o(h) && o(d) && h <= d;
1424
+ default:
1425
+ return !1;
1396
1426
  }
1397
- },
1398
- component: {
1399
- name: "Text",
1400
- options: {
1401
- text: "I am an accordion title. Click me!"
1427
+ })();
1428
+ }
1429
+ const l = {
1430
+ query: t,
1431
+ startDate: n,
1432
+ endDate: i
1433
+ }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1434
+ return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
1435
+ }
1436
+ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1437
+ if (!navigator.cookieEnabled) {
1438
+ return;
1439
+ }
1440
+ function getCookie(name) {
1441
+ const nameEQ = name + '=';
1442
+ const ca = document.cookie.split(';');
1443
+ for (let i = 0; i < ca.length; i++) {
1444
+ let c = ca[i];
1445
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1446
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1447
+ }
1448
+ return null;
1449
+ }
1450
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
1451
+ if (locale) {
1452
+ attributes.locale = locale;
1453
+ }
1454
+ const winningVariantIndex = variants?.findIndex(function (variant) {
1455
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
1456
+ });
1457
+ const parentDiv = document.currentScript?.parentElement;
1458
+ const variantId = parentDiv?.getAttribute('data-variant-id');
1459
+ const isDefaultVariant = variantId === \`\${blockId}-default\`;
1460
+ const isWinningVariant = winningVariantIndex !== -1 && variantId === \`\${blockId}-\${winningVariantIndex}\` || winningVariantIndex === -1 && isDefaultVariant;
1461
+ if (isWinningVariant && !isDefaultVariant) {
1462
+ parentDiv?.removeAttribute('hidden');
1463
+ parentDiv?.removeAttribute('aria-hidden');
1464
+ } else if (!isWinningVariant && isDefaultVariant) {
1465
+ parentDiv?.setAttribute('hidden', 'true');
1466
+ parentDiv?.setAttribute('aria-hidden', 'true');
1467
+ }
1468
+ if (isHydrationTarget) {
1469
+ if (!isWinningVariant) {
1470
+ const itsStyleEl = parentDiv?.previousElementSibling;
1471
+ if (itsStyleEl) {
1472
+ itsStyleEl.remove();
1402
1473
  }
1474
+ parentDiv?.remove();
1403
1475
  }
1404
- }]
1405
- }, oe = {
1406
- "@type": "@builder.io/sdk:Element",
1407
- layerName: "Accordion item detail",
1408
- responsiveStyles: {
1409
- large: {
1410
- position: "relative",
1411
- display: "flex",
1412
- alignItems: "stretch",
1413
- flexDirection: "column",
1414
- marginTop: "10px",
1415
- paddingBottom: "10px"
1476
+ const thisScript = document.currentScript;
1477
+ if (thisScript) {
1478
+ thisScript.remove();
1416
1479
  }
1417
- },
1418
- children: [{
1419
- "@type": "@builder.io/sdk:Element",
1420
- responsiveStyles: {
1421
- large: {
1422
- paddingTop: "50px",
1423
- textAlign: "left",
1424
- display: "flex",
1425
- flexDirection: "column",
1426
- paddingBottom: "50px"
1480
+ }
1481
+ }`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1482
+ function isString(val) {
1483
+ return typeof val === 'string';
1484
+ }
1485
+ function isNumber(val) {
1486
+ return typeof val === 'number';
1487
+ }
1488
+ function objectMatchesQuery(userattr, query) {
1489
+ const result = (() => {
1490
+ const property = query.property;
1491
+ const operator = query.operator;
1492
+ let testValue = query.value;
1493
+ if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
1494
+ testValue = query.value.slice(0, -1);
1427
1495
  }
1428
- },
1429
- component: {
1430
- name: "Text",
1431
- options: {
1432
- text: "I am an accordion detail, hello!"
1496
+ if (!(property && operator)) {
1497
+ return true;
1433
1498
  }
1434
- }
1435
- }]
1436
- }, on = {
1437
- name: "Builder:Accordion",
1438
- canHaveChildren: !0,
1439
- image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1440
- defaultStyles: {
1441
- display: "flex",
1442
- flexDirection: "column",
1443
- alignItems: "stretch"
1444
- },
1445
- inputs: [{
1446
- name: "items",
1447
- type: "list",
1448
- broadcast: !0,
1449
- subFields: [{
1450
- name: "title",
1451
- type: "uiBlocks",
1452
- hideFromUI: !0,
1453
- defaultValue: [ae]
1454
- }, {
1455
- name: "detail",
1456
- type: "uiBlocks",
1457
- hideFromUI: !0,
1458
- defaultValue: [oe]
1459
- }],
1460
- defaultValue: [{
1461
- title: [ae],
1462
- detail: [oe]
1499
+ if (Array.isArray(testValue)) {
1500
+ if (operator === 'isNot') {
1501
+ return testValue.every(val => objectMatchesQuery(userattr, {
1502
+ property,
1503
+ operator,
1504
+ value: val
1505
+ }));
1506
+ }
1507
+ return !!testValue.find(val => objectMatchesQuery(userattr, {
1508
+ property,
1509
+ operator,
1510
+ value: val
1511
+ }));
1512
+ }
1513
+ const value = userattr[property];
1514
+ if (Array.isArray(value)) {
1515
+ return value.includes(testValue);
1516
+ }
1517
+ switch (operator) {
1518
+ case 'is':
1519
+ return value === testValue;
1520
+ case 'isNot':
1521
+ return value !== testValue;
1522
+ case 'contains':
1523
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
1524
+ case 'startsWith':
1525
+ return isString(value) && value.startsWith(String(testValue));
1526
+ case 'endsWith':
1527
+ return isString(value) && value.endsWith(String(testValue));
1528
+ case 'greaterThan':
1529
+ return isNumber(value) && isNumber(testValue) && value > testValue;
1530
+ case 'lessThan':
1531
+ return isNumber(value) && isNumber(testValue) && value < testValue;
1532
+ case 'greaterThanOrEqualTo':
1533
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
1534
+ case 'lessThanOrEqualTo':
1535
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
1536
+ default:
1537
+ return false;
1538
+ }
1539
+ })();
1540
+ return result;
1541
+ }
1542
+ const item = {
1543
+ query,
1544
+ startDate,
1545
+ endDate
1546
+ };
1547
+ const now = userAttributes.date && new Date(userAttributes.date) || new Date();
1548
+ if (item.startDate && new Date(item.startDate) > now) {
1549
+ return false;
1550
+ } else if (item.endDate && new Date(item.endDate) < now) {
1551
+ return false;
1552
+ }
1553
+ if (!item.query || !item.query.length) {
1554
+ return true;
1555
+ }
1556
+ return item.query.every(filter => {
1557
+ return objectMatchesQuery(userAttributes, filter);
1558
+ });
1559
+ }`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1560
+ function getCookie(name) {
1561
+ const nameEQ = name + '=';
1562
+ const ca = document.cookie.split(';');
1563
+ for (let i = 0; i < ca.length; i++) {
1564
+ let c = ca[i];
1565
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1566
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1567
+ }
1568
+ return null;
1569
+ }
1570
+ const visibilityStylesEl = document.currentScript?.previousElementSibling;
1571
+ if (!visibilityStylesEl) {
1572
+ return;
1573
+ }
1574
+ if (isHydrationTarget) {
1575
+ visibilityStylesEl.remove();
1576
+ const currentScript = document.currentScript;
1577
+ if (currentScript) {
1578
+ currentScript.remove();
1579
+ }
1580
+ } else {
1581
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
1582
+ if (locale) {
1583
+ attributes.locale = locale;
1584
+ }
1585
+ const winningVariantIndex = variants?.findIndex(function (variant) {
1586
+ return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
1587
+ });
1588
+ if (winningVariantIndex !== -1) {
1589
+ let newStyleStr = variants?.map((_, index) => {
1590
+ if (index === winningVariantIndex) return '';
1591
+ return \`div[data-variant-id="\${blockId}-\${index}"] { display: none !important; } \`;
1592
+ }).join('') || '';
1593
+ newStyleStr += \`div[data-variant-id="\${blockId}-default"] { display: none !important; } \`;
1594
+ visibilityStylesEl.innerHTML = newStyleStr;
1595
+ }
1596
+ }
1597
+ }`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte"], ie = ["vue", "svelte"];
1598
+ function Sn(e, t) {
1599
+ return !(e && e.length > 0) || !t ? !1 : ie.includes(D) ? !0 : !K();
1600
+ }
1601
+ function kn({
1602
+ variants: e,
1603
+ previewingIndex: t,
1604
+ isHydrated: n,
1605
+ filteredVariants: i,
1606
+ fallbackBlocks: a
1607
+ }) {
1608
+ var r;
1609
+ const o = {
1610
+ blocks: a != null ? a : [],
1611
+ path: "this.children",
1612
+ index: ne
1613
+ };
1614
+ if (n && L()) {
1615
+ if (typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0)) {
1616
+ const l = e == null ? void 0 : e[t];
1617
+ if (l)
1618
+ return {
1619
+ blocks: l.blocks,
1620
+ path: `variants.${t}.blocks`,
1621
+ index: t
1622
+ };
1623
+ }
1624
+ return o;
1625
+ }
1626
+ if (K()) {
1627
+ const l = i == null ? void 0 : i[0];
1628
+ if (l && e) {
1629
+ const c = e.indexOf(l);
1630
+ if (c !== -1)
1631
+ return {
1632
+ blocks: l.blocks,
1633
+ path: `variants.${c}.blocks`,
1634
+ index: c
1635
+ };
1636
+ }
1637
+ }
1638
+ return o;
1639
+ }
1640
+ const Cn = () => `
1641
+ window.${xn} = ${pn}
1642
+ window.${et} = ${yn}
1643
+ window.${tt} = ${vn}
1644
+ `, it = D === "react", Tn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
1645
+ "@type": "@builder.io/sdk:Element",
1646
+ layerName: "Accordion item title",
1647
+ responsiveStyles: {
1648
+ large: {
1649
+ marginTop: "10px",
1650
+ position: "relative",
1651
+ display: "flex",
1652
+ alignItems: "stretch",
1653
+ flexDirection: "column",
1654
+ paddingBottom: "10px"
1655
+ }
1656
+ },
1657
+ children: [{
1658
+ "@type": "@builder.io/sdk:Element",
1659
+ responsiveStyles: {
1660
+ large: {
1661
+ textAlign: "left",
1662
+ display: "flex",
1663
+ flexDirection: "column"
1664
+ }
1665
+ },
1666
+ component: {
1667
+ name: "Text",
1668
+ options: {
1669
+ text: "I am an accordion title. Click me!"
1670
+ }
1671
+ }
1672
+ }]
1673
+ }, me = {
1674
+ "@type": "@builder.io/sdk:Element",
1675
+ layerName: "Accordion item detail",
1676
+ responsiveStyles: {
1677
+ large: {
1678
+ position: "relative",
1679
+ display: "flex",
1680
+ alignItems: "stretch",
1681
+ flexDirection: "column",
1682
+ marginTop: "10px",
1683
+ paddingBottom: "10px"
1684
+ }
1685
+ },
1686
+ children: [{
1687
+ "@type": "@builder.io/sdk:Element",
1688
+ responsiveStyles: {
1689
+ large: {
1690
+ paddingTop: "50px",
1691
+ textAlign: "left",
1692
+ display: "flex",
1693
+ flexDirection: "column",
1694
+ paddingBottom: "50px"
1695
+ }
1696
+ },
1697
+ component: {
1698
+ name: "Text",
1699
+ options: {
1700
+ text: "I am an accordion detail, hello!"
1701
+ }
1702
+ }
1703
+ }]
1704
+ }, wn = {
1705
+ name: "Builder:Accordion",
1706
+ canHaveChildren: !0,
1707
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1708
+ defaultStyles: {
1709
+ display: "flex",
1710
+ flexDirection: "column",
1711
+ alignItems: "stretch"
1712
+ },
1713
+ inputs: [{
1714
+ name: "items",
1715
+ type: "list",
1716
+ broadcast: !0,
1717
+ subFields: [{
1718
+ name: "title",
1719
+ type: "uiBlocks",
1720
+ hideFromUI: !0,
1721
+ defaultValue: [de]
1722
+ }, {
1723
+ name: "detail",
1724
+ type: "uiBlocks",
1725
+ hideFromUI: !0,
1726
+ defaultValue: [me]
1727
+ }],
1728
+ defaultValue: [{
1729
+ title: [de],
1730
+ detail: [me]
1463
1731
  }, {
1464
- title: [ae],
1465
- detail: [oe]
1732
+ title: [de],
1733
+ detail: [me]
1466
1734
  }],
1467
1735
  showIf: (e) => !e.get("useChildrenForItems")
1468
1736
  }, {
@@ -1497,10 +1765,10 @@ const ae = {
1497
1765
  builderComponents: !0,
1498
1766
  builderLinkComponent: !0
1499
1767
  }
1500
- }, Te = (e) => e.toString();
1501
- function rn(e) {
1502
- var b;
1503
- const [t, n] = I(() => []);
1768
+ }, Ae = (e) => e.toString();
1769
+ function En(e) {
1770
+ var g;
1771
+ const [t, n] = C(() => []);
1504
1772
  function i() {
1505
1773
  return !!(e.grid || e.oneAtATime);
1506
1774
  }
@@ -1516,8 +1784,8 @@ function rn(e) {
1516
1784
  }
1517
1785
  };
1518
1786
  }
1519
- function r() {
1520
- const x = {
1787
+ function o() {
1788
+ const v = {
1521
1789
  ...{
1522
1790
  display: "flex",
1523
1791
  flexDirection: "column"
@@ -1526,35 +1794,35 @@ function rn(e) {
1526
1794
  cursor: "pointer"
1527
1795
  };
1528
1796
  return Object.fromEntries(
1529
- Object.entries(x).filter(([u, g]) => g !== void 0)
1797
+ Object.entries(v).filter(([d, h]) => h !== void 0)
1530
1798
  );
1531
1799
  }
1532
- function o(m) {
1800
+ function r(m) {
1533
1801
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1534
1802
  }
1535
1803
  function l(m) {
1536
1804
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1537
1805
  }
1538
- function d() {
1806
+ function c() {
1539
1807
  let m = null;
1540
1808
  if (e.grid && t.length && document) {
1541
- const u = t[0];
1542
- let v = document.querySelector(
1543
- `.builder-accordion-title[data-index="${u}"]`
1809
+ const d = t[0];
1810
+ let p = document.querySelector(
1811
+ `.builder-accordion-title[data-index="${d}"]`
1544
1812
  );
1545
- if (m = u, v) {
1546
- let p = v.getBoundingClientRect();
1547
- for (; v = v && v.nextElementSibling; )
1548
- if (v) {
1549
- if (v.classList.contains("builder-accordion-detail"))
1813
+ if (m = d, p) {
1814
+ let y = p.getBoundingClientRect();
1815
+ for (; p = p && p.nextElementSibling; )
1816
+ if (p) {
1817
+ if (p.classList.contains("builder-accordion-detail"))
1550
1818
  continue;
1551
- const k = v.getBoundingClientRect();
1552
- if (k.left > p.left) {
1553
- const C = parseInt(
1554
- v.getAttribute("data-index") || "",
1819
+ const x = p.getBoundingClientRect();
1820
+ if (x.left > y.left) {
1821
+ const k = parseInt(
1822
+ p.getAttribute("data-index") || "",
1555
1823
  10
1556
1824
  );
1557
- isNaN(C) || (p = k, m = C);
1825
+ isNaN(k) || (y = x, m = k);
1558
1826
  } else
1559
1827
  break;
1560
1828
  }
@@ -1562,39 +1830,39 @@ function rn(e) {
1562
1830
  }
1563
1831
  return typeof m == "number" && (m = m + 1), m;
1564
1832
  }
1565
- function c() {
1833
+ function u() {
1566
1834
  const m = {
1567
- order: typeof d() == "number" ? d() : void 0,
1835
+ order: typeof c() == "number" ? c() : void 0,
1568
1836
  ...e.grid && {
1569
1837
  width: "100%"
1570
1838
  }
1571
1839
  };
1572
1840
  return Object.fromEntries(
1573
- Object.entries(m).filter(([x, u]) => u !== void 0)
1841
+ Object.entries(m).filter(([v, d]) => d !== void 0)
1574
1842
  );
1575
1843
  }
1576
- function h(m) {
1577
- t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1844
+ function f(m) {
1845
+ t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1578
1846
  }
1579
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m, x) => /* @__PURE__ */ B(nt.Fragment, { children: [
1847
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
1580
1848
  /* @__PURE__ */ s(
1581
1849
  "div",
1582
1850
  {
1583
- className: o(x),
1851
+ className: r(v),
1584
1852
  style: {
1585
- ...r(),
1853
+ ...o(),
1586
1854
  ...e.grid && {
1587
1855
  width: e.gridRowWidth,
1588
- order: d() !== null ? Te(x) : Te(x + 1)
1856
+ order: c() !== null ? Ae(v) : Ae(v + 1)
1589
1857
  }
1590
1858
  },
1591
- "data-index": x,
1592
- onClick: (u) => h(x),
1859
+ "data-index": v,
1860
+ onClick: (d) => f(v),
1593
1861
  children: /* @__PURE__ */ s(
1594
- $,
1862
+ _,
1595
1863
  {
1596
1864
  blocks: m.title,
1597
- path: `items.${x}.title`,
1865
+ path: `items.${v}.title`,
1598
1866
  parent: e.builderBlock.id,
1599
1867
  context: e.builderContext,
1600
1868
  registeredComponents: e.builderComponents,
@@ -1603,16 +1871,16 @@ function rn(e) {
1603
1871
  )
1604
1872
  }
1605
1873
  ),
1606
- t.includes(x) ? /* @__PURE__ */ s(
1874
+ t.includes(v) ? /* @__PURE__ */ s(
1607
1875
  "div",
1608
1876
  {
1609
- className: l(x),
1610
- style: c(),
1877
+ className: l(v),
1878
+ style: u(),
1611
1879
  children: /* @__PURE__ */ s(
1612
- $,
1880
+ _,
1613
1881
  {
1614
1882
  blocks: m.detail,
1615
- path: `items.${x}.detail`,
1883
+ path: `items.${v}.detail`,
1616
1884
  parent: e.builderBlock.id,
1617
1885
  context: e.builderContext,
1618
1886
  registeredComponents: e.builderComponents,
@@ -1621,9 +1889,9 @@ function rn(e) {
1621
1889
  )
1622
1890
  }
1623
1891
  ) : null
1624
- ] }, x)) });
1892
+ ] }, v)) });
1625
1893
  }
1626
- const ln = {
1894
+ const Rn = {
1627
1895
  name: "Core:Button",
1628
1896
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1629
1897
  defaultStyles: {
@@ -1659,7 +1927,7 @@ const ln = {
1659
1927
  shouldReceiveBuilderProps: {
1660
1928
  builderLinkComponent: !0
1661
1929
  }
1662
- }, sn = {
1930
+ }, Pn = {
1663
1931
  // TODO: ways to statically preprocess JSON for references, functions, etc
1664
1932
  name: "Columns",
1665
1933
  isRSC: !0,
@@ -1838,7 +2106,7 @@ const ln = {
1838
2106
  });
1839
2107
  }
1840
2108
  const n = e.get("columns");
1841
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
2109
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1842
2110
  }
1843
2111
  }, {
1844
2112
  name: "space",
@@ -1866,13 +2134,13 @@ const ln = {
1866
2134
  builderComponents: !0,
1867
2135
  builderLinkComponent: !0
1868
2136
  }
1869
- }, cn = {
2137
+ }, Vn = {
1870
2138
  name: "Fragment",
1871
2139
  static: !0,
1872
2140
  hidden: !0,
1873
2141
  canHaveChildren: !0,
1874
2142
  noWrap: !0
1875
- }, he = ["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"], un = ["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"], dn = {
2143
+ }, Se = ["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"], Bn = {
1876
2144
  name: "Image",
1877
2145
  static: !0,
1878
2146
  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",
@@ -1887,457 +2155,247 @@ const ln = {
1887
2155
  name: "image",
1888
2156
  type: "file",
1889
2157
  bubble: !0,
1890
- allowedFileTypes: he,
2158
+ allowedFileTypes: Se,
1891
2159
  required: !0,
1892
2160
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1893
2161
  onChange: (e) => {
1894
2162
  e.delete("srcset"), e.delete("noWebp");
1895
- function n(o, l = 6e4) {
1896
- return new Promise((d, c) => {
1897
- const h = document.createElement("img");
1898
- let b = !1;
1899
- h.onload = () => {
1900
- b = !0, d(h);
1901
- }, h.addEventListener("error", (m) => {
1902
- console.warn("Image load failed", m.error), c(m.error);
1903
- }), h.src = o, setTimeout(() => {
1904
- b || c(new Error("Image load timed out"));
2163
+ function n(r, l = 6e4) {
2164
+ return new Promise((c, u) => {
2165
+ const f = document.createElement("img");
2166
+ let g = !1;
2167
+ f.onload = () => {
2168
+ g = !0, c(f);
2169
+ }, f.addEventListener("error", (m) => {
2170
+ console.warn("Image load failed", m.error), u(m.error);
2171
+ }), f.src = r, setTimeout(() => {
2172
+ g || u(new Error("Image load timed out"));
1905
2173
  }, l);
1906
2174
  });
1907
2175
  }
1908
- function i(o) {
1909
- return Math.round(o * 1e3) / 1e3;
2176
+ function i(r) {
2177
+ return Math.round(r * 1e3) / 1e3;
1910
2178
  }
1911
- const a = e.get("image"), r = e.get("aspectRatio");
1912
- if (fetch(a).then((o) => o.blob()).then((o) => {
1913
- o.type.includes("svg") && e.set("noWebp", !0);
1914
- }), a && (!r || r === 0.7041))
1915
- return n(a).then((o) => {
2179
+ const a = e.get("image"), o = e.get("aspectRatio");
2180
+ if (fetch(a).then((r) => r.blob()).then((r) => {
2181
+ r.type.includes("svg") && e.set("noWebp", !0);
2182
+ }), a && (!o || o === 0.7041))
2183
+ return n(a).then((r) => {
1916
2184
  const l = e.get("aspectRatio");
1917
- 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));
2185
+ e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1918
2186
  });
1919
2187
  }
1920
- }, {
1921
- name: "backgroundSize",
1922
- type: "text",
1923
- defaultValue: "cover",
1924
- enum: [{
1925
- label: "contain",
1926
- value: "contain",
1927
- helperText: "The image should never get cropped"
1928
- }, {
1929
- label: "cover",
1930
- value: "cover",
1931
- helperText: "The image should fill it's box, cropping when needed"
1932
- }]
1933
- }, {
1934
- name: "backgroundPosition",
1935
- type: "text",
1936
- defaultValue: "center",
1937
- enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
1938
- }, {
1939
- name: "altText",
1940
- type: "string",
1941
- helperText: "Text to display when the user has images off"
1942
- }, {
1943
- name: "title",
1944
- type: "string",
1945
- helperText: "Text to display when hovering over the asset"
1946
- }, {
1947
- name: "height",
1948
- type: "number",
1949
- hideFromUI: !0
1950
- }, {
1951
- name: "width",
1952
- type: "number",
1953
- hideFromUI: !0
1954
- }, {
1955
- name: "sizes",
1956
- type: "string",
1957
- hideFromUI: !0
1958
- }, {
1959
- name: "srcset",
1960
- type: "string",
1961
- hideFromUI: !0
1962
- }, {
1963
- name: "lazy",
1964
- type: "boolean",
1965
- defaultValue: !0,
1966
- hideFromUI: !0
1967
- }, {
1968
- name: "fitContent",
1969
- type: "boolean",
1970
- helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
1971
- defaultValue: !0
1972
- }, {
1973
- name: "highPriority",
1974
- type: "boolean",
1975
- advanced: !0,
1976
- helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
1977
- }, {
1978
- name: "aspectRatio",
1979
- type: "number",
1980
- helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
1981
- advanced: !0,
1982
- defaultValue: 0.7041
1983
- }],
1984
- shouldReceiveBuilderProps: {
1985
- builderBlock: !0
1986
- }
1987
- }, mn = {
1988
- name: "PersonalizationContainer",
1989
- shouldReceiveBuilderProps: {
1990
- builderBlock: !0,
1991
- builderContext: !0
1992
- },
1993
- noWrap: !0,
1994
- image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
1995
- canHaveChildren: !0,
1996
- inputs: [{
1997
- name: "variants",
1998
- defaultValue: [],
1999
- behavior: "personalizationVariantList",
2000
- type: "list",
2001
- subFields: [{
2002
- name: "name",
2003
- type: "text"
2004
- }, {
2005
- name: "query",
2006
- friendlyName: "Targeting rules",
2007
- type: "BuilderQuery",
2008
- defaultValue: []
2009
- }, {
2010
- name: "startDate",
2011
- type: "date"
2012
- }, {
2013
- name: "endDate",
2014
- type: "date"
2015
- }, {
2016
- name: "blocks",
2017
- type: "uiBlocks",
2018
- hideFromUI: !0,
2019
- defaultValue: []
2020
- }]
2021
- }]
2022
- };
2023
- function Y(e) {
2024
- return /* @__PURE__ */ s(
2025
- "script",
2026
- {
2027
- dangerouslySetInnerHTML: { __html: e.scriptStr },
2028
- "data-id": e.id,
2029
- nonce: e.nonce || ""
2030
- }
2031
- );
2032
- }
2033
- function fn(e, t, n, i) {
2034
- function a(c) {
2035
- return typeof c == "string";
2036
- }
2037
- function r(c) {
2038
- return typeof c == "number";
2039
- }
2040
- function o(c, h) {
2041
- return (() => {
2042
- const m = h.property, x = h.operator;
2043
- let u = h.value;
2044
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (u = h.value.slice(0, -1)), !(m && x))
2045
- return !0;
2046
- if (Array.isArray(u))
2047
- return x === "isNot" ? u.every((v) => o(c, {
2048
- property: m,
2049
- operator: x,
2050
- value: v
2051
- })) : !!u.find((v) => o(c, {
2052
- property: m,
2053
- operator: x,
2054
- value: v
2055
- }));
2056
- const g = c[m];
2057
- if (Array.isArray(g))
2058
- return g.includes(u);
2059
- switch (x) {
2060
- case "is":
2061
- return g === u;
2062
- case "isNot":
2063
- return g !== u;
2064
- case "contains":
2065
- return (a(g) || Array.isArray(g)) && g.includes(String(u));
2066
- case "startsWith":
2067
- return a(g) && g.startsWith(String(u));
2068
- case "endsWith":
2069
- return a(g) && g.endsWith(String(u));
2070
- case "greaterThan":
2071
- return r(g) && r(u) && g > u;
2072
- case "lessThan":
2073
- return r(g) && r(u) && g < u;
2074
- case "greaterThanOrEqualTo":
2075
- return r(g) && r(u) && g >= u;
2076
- case "lessThanOrEqualTo":
2077
- return r(g) && r(u) && g <= u;
2078
- default:
2079
- return !1;
2080
- }
2081
- })();
2082
- }
2083
- const l = {
2084
- query: t,
2085
- startDate: n,
2086
- endDate: i
2087
- }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2088
- return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
2089
- }
2090
- const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2091
- if (!navigator.cookieEnabled) {
2092
- return;
2093
- }
2094
- function getCookie(name) {
2095
- const nameEQ = name + '=';
2096
- const ca = document.cookie.split(';');
2097
- for (let i = 0; i < ca.length; i++) {
2098
- let c = ca[i];
2099
- while (c.charAt(0) == ' ') c = c.substring(1, c.length);
2100
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
2101
- }
2102
- return null;
2103
- }
2104
- function removeVariants() {
2105
- variants?.forEach(function (_, index) {
2106
- document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
2107
- });
2108
- document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
2109
- document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
2110
- }
2111
- const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
2112
- if (locale) {
2113
- attributes.locale = locale;
2114
- }
2115
- const winningVariantIndex = variants?.findIndex(function (variant) {
2116
- return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2117
- });
2118
- const isDebug = location.href.includes('builder.debug=true');
2119
- if (isDebug) {
2120
- console.debug('PersonalizationContainer', {
2121
- attributes,
2122
- variants,
2123
- winningVariantIndex
2124
- });
2125
- }
2126
- if (winningVariantIndex !== -1) {
2127
- const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
2128
- if (winningVariant) {
2129
- const parentNode = winningVariant.parentNode;
2130
- if (parentNode) {
2131
- const newParent = parentNode.cloneNode(false);
2132
- newParent.appendChild(winningVariant.content.firstChild);
2133
- newParent.appendChild(winningVariant.content.lastChild);
2134
- parentNode.parentNode?.replaceChild(newParent, parentNode);
2135
- }
2136
- if (isDebug) {
2137
- console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
2138
- }
2139
- }
2140
- } else if (variants && variants.length > 0) {
2141
- removeVariants();
2142
- }
2143
- }`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2144
- function isString(val) {
2145
- return typeof val === 'string';
2146
- }
2147
- function isNumber(val) {
2148
- return typeof val === 'number';
2149
- }
2150
- function objectMatchesQuery(userattr, query) {
2151
- const result = (() => {
2152
- const property = query.property;
2153
- const operator = query.operator;
2154
- let testValue = query.value;
2155
- if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
2156
- testValue = query.value.slice(0, -1);
2157
- }
2158
- if (!(property && operator)) {
2159
- return true;
2160
- }
2161
- if (Array.isArray(testValue)) {
2162
- if (operator === 'isNot') {
2163
- return testValue.every(val => objectMatchesQuery(userattr, {
2164
- property,
2165
- operator,
2166
- value: val
2167
- }));
2168
- }
2169
- return !!testValue.find(val => objectMatchesQuery(userattr, {
2170
- property,
2171
- operator,
2172
- value: val
2173
- }));
2174
- }
2175
- const value = userattr[property];
2176
- if (Array.isArray(value)) {
2177
- return value.includes(testValue);
2178
- }
2179
- switch (operator) {
2180
- case 'is':
2181
- return value === testValue;
2182
- case 'isNot':
2183
- return value !== testValue;
2184
- case 'contains':
2185
- return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
2186
- case 'startsWith':
2187
- return isString(value) && value.startsWith(String(testValue));
2188
- case 'endsWith':
2189
- return isString(value) && value.endsWith(String(testValue));
2190
- case 'greaterThan':
2191
- return isNumber(value) && isNumber(testValue) && value > testValue;
2192
- case 'lessThan':
2193
- return isNumber(value) && isNumber(testValue) && value < testValue;
2194
- case 'greaterThanOrEqualTo':
2195
- return isNumber(value) && isNumber(testValue) && value >= testValue;
2196
- case 'lessThanOrEqualTo':
2197
- return isNumber(value) && isNumber(testValue) && value <= testValue;
2198
- default:
2199
- return false;
2200
- }
2201
- })();
2202
- return result;
2203
- }
2204
- const item = {
2205
- query,
2206
- startDate,
2207
- endDate
2208
- };
2209
- const now = userAttributes.date && new Date(userAttributes.date) || new Date();
2210
- if (item.startDate && new Date(item.startDate) > now) {
2211
- return false;
2212
- } else if (item.endDate && new Date(item.endDate) < now) {
2213
- return false;
2214
- }
2215
- if (!item.query || !item.query.length) {
2216
- return true;
2217
- }
2218
- return item.query.every(filter => {
2219
- return objectMatchesQuery(userAttributes, filter);
2220
- });
2221
- }`;
2222
- function bn(e, t) {
2223
- return !(!(e && e.length > 0) || !t || U());
2224
- }
2225
- function pn({
2226
- variants: e,
2227
- previewingIndex: t,
2228
- isHydrated: n,
2229
- filteredVariants: i,
2230
- fallbackBlocks: a
2231
- }) {
2232
- var o;
2233
- const r = {
2234
- blocks: a != null ? a : [],
2235
- path: "this.children"
2236
- };
2237
- if (n && N())
2238
- return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
2239
- blocks: e[t].blocks,
2240
- path: `component.options.variants.${t}.blocks`
2241
- } : r;
2242
- if (U()) {
2243
- const l = i == null ? void 0 : i[0];
2244
- if (l)
2245
- return {
2246
- blocks: l.blocks,
2247
- path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
2248
- };
2188
+ }, {
2189
+ name: "backgroundSize",
2190
+ type: "text",
2191
+ defaultValue: "cover",
2192
+ enum: [{
2193
+ label: "contain",
2194
+ value: "contain",
2195
+ helperText: "The image should never get cropped"
2196
+ }, {
2197
+ label: "cover",
2198
+ value: "cover",
2199
+ helperText: "The image should fill it's box, cropping when needed"
2200
+ }]
2201
+ }, {
2202
+ name: "backgroundPosition",
2203
+ type: "text",
2204
+ defaultValue: "center",
2205
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
2206
+ }, {
2207
+ name: "altText",
2208
+ type: "string",
2209
+ helperText: "Text to display when the user has images off"
2210
+ }, {
2211
+ name: "title",
2212
+ type: "string",
2213
+ helperText: "Text to display when hovering over the asset"
2214
+ }, {
2215
+ name: "height",
2216
+ type: "number",
2217
+ hideFromUI: !0
2218
+ }, {
2219
+ name: "width",
2220
+ type: "number",
2221
+ hideFromUI: !0
2222
+ }, {
2223
+ name: "sizes",
2224
+ type: "string",
2225
+ hideFromUI: !0
2226
+ }, {
2227
+ name: "srcset",
2228
+ type: "string",
2229
+ hideFromUI: !0
2230
+ }, {
2231
+ name: "lazy",
2232
+ type: "boolean",
2233
+ defaultValue: !0,
2234
+ hideFromUI: !0
2235
+ }, {
2236
+ name: "fitContent",
2237
+ type: "boolean",
2238
+ helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
2239
+ defaultValue: !0
2240
+ }, {
2241
+ name: "highPriority",
2242
+ type: "boolean",
2243
+ advanced: !0,
2244
+ helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
2245
+ }, {
2246
+ name: "aspectRatio",
2247
+ type: "number",
2248
+ helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
2249
+ advanced: !0,
2250
+ defaultValue: 0.7041
2251
+ }],
2252
+ shouldReceiveBuilderProps: {
2253
+ builderBlock: !0
2249
2254
  }
2250
- return r;
2255
+ }, Nn = {
2256
+ name: "PersonalizationContainer",
2257
+ shouldReceiveBuilderProps: {
2258
+ builderBlock: !0,
2259
+ builderContext: !0,
2260
+ builderComponents: !0
2261
+ },
2262
+ noWrap: !0,
2263
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
2264
+ canHaveChildren: !0,
2265
+ inputs: [{
2266
+ name: "variants",
2267
+ defaultValue: [],
2268
+ behavior: "personalizationVariantList",
2269
+ type: "list",
2270
+ subFields: [{
2271
+ name: "name",
2272
+ type: "text"
2273
+ }, {
2274
+ name: "query",
2275
+ friendlyName: "Targeting rules",
2276
+ type: "BuilderQuery",
2277
+ defaultValue: []
2278
+ }, {
2279
+ name: "startDate",
2280
+ type: "date"
2281
+ }, {
2282
+ name: "endDate",
2283
+ type: "date"
2284
+ }, {
2285
+ name: "blocks",
2286
+ type: "uiBlocks",
2287
+ hideFromUI: !0,
2288
+ defaultValue: []
2289
+ }]
2290
+ }]
2291
+ };
2292
+ function q(e) {
2293
+ return /* @__PURE__ */ s(
2294
+ "script",
2295
+ {
2296
+ dangerouslySetInnerHTML: { __html: e.scriptStr },
2297
+ "data-id": e.id,
2298
+ nonce: e.nonce || ""
2299
+ }
2300
+ );
2251
2301
  }
2252
- const yn = (e, t, n) => `
2253
- (function() {
2254
- ${gn}
2255
- ${hn}
2256
- getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
2257
- })();
2258
- `;
2259
- function vn(e) {
2260
- var g, v, p, k, C, V, w;
2261
- const t = L(null), [n, i] = I(
2262
- () => be.getUserAttributes()
2263
- ), [a, r] = I(
2302
+ function $n(e) {
2303
+ var x, k, V, T, I, b, S, w, A, F, O, W, U;
2304
+ const t = H(null), [n, i] = C(
2305
+ () => Ce.getUserAttributes()
2306
+ ), [a, o] = C(
2264
2307
  () => {
2265
- var S, f, y;
2266
- return yn(
2308
+ var E, B, N;
2309
+ return Tn(
2267
2310
  e.variants,
2268
- ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2269
- (y = (f = e.builderContext) == null ? void 0 : f.rootState) == null ? void 0 : y.locale
2311
+ ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2312
+ (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2270
2313
  );
2271
2314
  }
2272
- ), [o, l] = I(() => []), [d, c] = I(
2315
+ ), [r, l] = C(
2273
2316
  () => {
2274
- var S;
2275
- return bn(
2317
+ var E, B, N;
2318
+ return In(
2319
+ e.variants,
2320
+ ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2321
+ (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2322
+ );
2323
+ }
2324
+ ), [c, u] = C(() => []), [f, g] = C(
2325
+ () => {
2326
+ var E;
2327
+ return Sn(
2276
2328
  e.variants,
2277
- M((S = e.builderContext) == null ? void 0 : S.canTrack)
2329
+ X((E = e.builderContext) == null ? void 0 : E.canTrack)
2278
2330
  );
2279
2331
  }
2280
- ), [h, b] = I(() => !1);
2281
- function m() {
2282
- return (e.variants || []).filter((S) => {
2283
- var f, y, T, E;
2284
- return fn(
2332
+ ), [m, v] = C(() => !1);
2333
+ function d() {
2334
+ return {
2335
+ ...e.attributes,
2336
+ [j()]: `builder-personalization-container ${e.attributes[j()] || ""}`
2337
+ };
2338
+ }
2339
+ function h() {
2340
+ return (e.variants || []).filter((E) => {
2341
+ var B, N, z, M;
2342
+ return bn(
2285
2343
  {
2286
- ...(y = (f = e.builderContext) == null ? void 0 : f.rootState) != null && y.locale ? {
2287
- locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2344
+ ...(N = (B = e.builderContext) == null ? void 0 : B.rootState) != null && N.locale ? {
2345
+ locale: (M = (z = e.builderContext) == null ? void 0 : z.rootState) == null ? void 0 : M.locale
2288
2346
  } : {},
2289
2347
  ...n
2290
2348
  },
2291
- S.query,
2292
- S.startDate,
2293
- S.endDate
2349
+ E.query,
2350
+ E.startDate,
2351
+ E.endDate
2294
2352
  );
2295
2353
  });
2296
2354
  }
2297
- function x() {
2298
- var S;
2299
- return pn({
2355
+ function p() {
2356
+ var E;
2357
+ return kn({
2300
2358
  variants: e.variants,
2301
- fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2302
- isHydrated: h,
2303
- filteredVariants: m(),
2359
+ fallbackBlocks: (E = e.builderBlock) == null ? void 0 : E.children,
2360
+ isHydrated: m,
2361
+ filteredVariants: h(),
2304
2362
  previewingIndex: e.previewingIndex
2305
2363
  });
2306
2364
  }
2307
- function u() {
2365
+ function y() {
2308
2366
  return (e.variants || []).map(
2309
- (S, f) => {
2310
- var y;
2311
- return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${f}"] { display: none; } `;
2367
+ (E, B) => {
2368
+ var N;
2369
+ return `div[data-variant-id="${(N = e.builderBlock) == null ? void 0 : N.id}-${B}"] { display: none !important; } `;
2312
2370
  }
2313
2371
  ).join("");
2314
2372
  }
2315
- return R(() => {
2316
- var f;
2317
- b(!0);
2318
- const S = be.subscribeOnUserAttributesChange(
2319
- (y) => {
2320
- i(y);
2373
+ return P(() => {
2374
+ var B;
2375
+ v(!0);
2376
+ const E = Ce.subscribeOnUserAttributesChange(
2377
+ (N) => {
2378
+ i(N);
2321
2379
  }
2322
2380
  );
2323
- if (!(N() || X())) {
2324
- const y = m()[0];
2381
+ if (!(L() || oe())) {
2382
+ const N = h()[0];
2325
2383
  t.current && (t.current.dispatchEvent(
2326
2384
  new CustomEvent("builder.variantLoaded", {
2327
2385
  detail: {
2328
- variant: y || "default",
2329
- content: (f = e.builderContext) == null ? void 0 : f.content
2386
+ variant: N || ne,
2387
+ content: (B = e.builderContext) == null ? void 0 : B.content
2330
2388
  },
2331
2389
  bubbles: !0
2332
2390
  })
2333
- ), new IntersectionObserver((E) => {
2334
- E.forEach((A) => {
2335
- var W;
2336
- A.isIntersecting && t.current && t.current.dispatchEvent(
2391
+ ), new IntersectionObserver((M) => {
2392
+ M.forEach((te) => {
2393
+ var G;
2394
+ te.isIntersecting && t.current && t.current.dispatchEvent(
2337
2395
  new CustomEvent("builder.variantDisplayed", {
2338
2396
  detail: {
2339
- variant: y || "default",
2340
- content: (W = e.builderContext) == null ? void 0 : W.content
2397
+ variant: N || ne,
2398
+ content: (G = e.builderContext) == null ? void 0 : G.content
2341
2399
  },
2342
2400
  bubbles: !0
2343
2401
  })
@@ -2345,65 +2403,97 @@ function vn(e) {
2345
2403
  });
2346
2404
  }).observe(t.current));
2347
2405
  }
2348
- o.push(S);
2349
- }, []), R(() => () => {
2350
- o.forEach((S) => S());
2351
- }, []), /* @__PURE__ */ B(
2352
- "div",
2353
- {
2354
- ref: t,
2355
- ...e.attributes,
2356
- className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2357
- children: [
2358
- d ? /* @__PURE__ */ B(P, { children: [
2359
- (v = e.variants) == null ? void 0 : v.map((S, f) => {
2360
- var y, T;
2361
- return /* @__PURE__ */ s(
2362
- "template",
2363
- {
2364
- "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${f}`,
2365
- children: /* @__PURE__ */ s(
2366
- $,
2367
- {
2368
- blocks: S.blocks,
2369
- parent: (T = e.builderBlock) == null ? void 0 : T.id,
2370
- path: `component.options.variants.${f}.blocks`
2371
- }
2372
- )
2373
- },
2374
- f
2375
- );
2376
- }),
2377
- /* @__PURE__ */ s(
2378
- K,
2406
+ c.push(E);
2407
+ }, []), P(() => () => {
2408
+ c.forEach((E) => E());
2409
+ }, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
2410
+ m && ie.includes(D) ? /* @__PURE__ */ s(
2411
+ _,
2412
+ {
2413
+ blocks: p().blocks,
2414
+ parent: (x = e.builderBlock) == null ? void 0 : x.id,
2415
+ path: p().path,
2416
+ context: e.builderContext,
2417
+ registeredComponents: e.builderComponents,
2418
+ BlocksWrapperProps: {
2419
+ ...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
2420
+ "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${p().index}`
2421
+ }
2422
+ }
2423
+ ) : null,
2424
+ !m && ie.includes(D) || !ie.includes(D) ? /* @__PURE__ */ $(R, { children: [
2425
+ f ? /* @__PURE__ */ $(R, { children: [
2426
+ /* @__PURE__ */ s(
2427
+ ee,
2428
+ {
2429
+ nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2430
+ styles: y(),
2431
+ id: `variants-styles-${(I = e.builderBlock) == null ? void 0 : I.id}`
2432
+ }
2433
+ ),
2434
+ /* @__PURE__ */ s(
2435
+ q,
2436
+ {
2437
+ nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2438
+ scriptStr: r,
2439
+ id: `variants-visibility-script-${(S = e.builderBlock) == null ? void 0 : S.id}`
2440
+ }
2441
+ ),
2442
+ (w = e.variants) == null ? void 0 : w.map((E, B) => {
2443
+ var N, z, M, te, G, ke;
2444
+ return /* @__PURE__ */ s(
2445
+ _,
2379
2446
  {
2380
- nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2381
- styles: u(),
2382
- id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2383
- }
2384
- ),
2385
- /* @__PURE__ */ s(
2386
- Y,
2447
+ BlocksWrapperProps: {
2448
+ ...(N = e.builderContext) == null ? void 0 : N.BlocksWrapperProps,
2449
+ "aria-hidden": !0,
2450
+ hidden: !0,
2451
+ "data-variant-id": `${(z = e.builderBlock) == null ? void 0 : z.id}-${B}`
2452
+ },
2453
+ blocks: E.blocks,
2454
+ parent: (M = e.builderBlock) == null ? void 0 : M.id,
2455
+ path: `component.options.variants.${B}.blocks`,
2456
+ context: e.builderContext,
2457
+ registeredComponents: e.builderComponents,
2458
+ children: /* @__PURE__ */ s(
2459
+ q,
2460
+ {
2461
+ nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
2462
+ scriptStr: a,
2463
+ id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
2464
+ }
2465
+ )
2466
+ },
2467
+ `${(ke = e.builderBlock) == null ? void 0 : ke.id}-${B}`
2468
+ );
2469
+ })
2470
+ ] }) : null,
2471
+ /* @__PURE__ */ s(
2472
+ _,
2473
+ {
2474
+ blocks: p().blocks,
2475
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
2476
+ path: p().path,
2477
+ context: e.builderContext,
2478
+ registeredComponents: e.builderComponents,
2479
+ BlocksWrapperProps: {
2480
+ ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
2481
+ "data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${p().index}`
2482
+ },
2483
+ children: f ? /* @__PURE__ */ s(
2484
+ q,
2387
2485
  {
2388
- nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
2486
+ nonce: ((W = e.builderContext) == null ? void 0 : W.nonce) || "",
2389
2487
  scriptStr: a,
2390
- id: `variants-script-${(V = e.builderBlock) == null ? void 0 : V.id}`
2488
+ id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
2391
2489
  }
2392
- )
2393
- ] }) : null,
2394
- /* @__PURE__ */ s(
2395
- $,
2396
- {
2397
- blocks: x().blocks,
2398
- parent: (w = e.builderBlock) == null ? void 0 : w.id,
2399
- path: x().path
2400
- }
2401
- )
2402
- ]
2403
- }
2404
- );
2490
+ ) : null
2491
+ }
2492
+ )
2493
+ ] }) : null
2494
+ ] });
2405
2495
  }
2406
- const xn = {
2496
+ const Wn = {
2407
2497
  name: "Core:Section",
2408
2498
  static: !0,
2409
2499
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2442,7 +2532,7 @@ const xn = {
2442
2532
  }
2443
2533
  }
2444
2534
  }]
2445
- }, Sn = {
2535
+ }, Dn = {
2446
2536
  name: "Slot",
2447
2537
  isRSC: !0,
2448
2538
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2460,7 +2550,7 @@ const xn = {
2460
2550
  builderComponents: !0
2461
2551
  }
2462
2552
  };
2463
- function kn(e) {
2553
+ function Fn(e) {
2464
2554
  var t, n, i;
2465
2555
  return /* @__PURE__ */ s(
2466
2556
  "div",
@@ -2472,7 +2562,7 @@ function kn(e) {
2472
2562
  "builder-slot": e.name
2473
2563
  },
2474
2564
  children: /* @__PURE__ */ s(
2475
- $,
2565
+ _,
2476
2566
  {
2477
2567
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2478
2568
  path: `symbol.data.${e.name}`,
@@ -2484,7 +2574,7 @@ function kn(e) {
2484
2574
  }
2485
2575
  );
2486
2576
  }
2487
- const Cn = {
2577
+ const Ln = {
2488
2578
  name: "Symbol",
2489
2579
  noWrap: !0,
2490
2580
  static: !0,
@@ -2523,7 +2613,7 @@ const Cn = {
2523
2613
  builderComponents: !0,
2524
2614
  builderLinkComponent: !0
2525
2615
  }
2526
- }, re = {
2616
+ }, fe = {
2527
2617
  "@type": "@builder.io/sdk:Element",
2528
2618
  responsiveStyles: {
2529
2619
  large: {
@@ -2545,7 +2635,7 @@ const Cn = {
2545
2635
  text: "New tab"
2546
2636
  }
2547
2637
  }
2548
- }, le = {
2638
+ }, he = {
2549
2639
  "@type": "@builder.io/sdk:Element",
2550
2640
  responsiveStyles: {
2551
2641
  large: {
@@ -2561,7 +2651,7 @@ const Cn = {
2561
2651
  text: "New tab content "
2562
2652
  }
2563
2653
  }
2564
- }, Tn = {
2654
+ }, On = {
2565
2655
  name: "Builder: Tabs",
2566
2656
  inputs: [{
2567
2657
  name: "tabs",
@@ -2571,16 +2661,16 @@ const Cn = {
2571
2661
  name: "label",
2572
2662
  type: "uiBlocks",
2573
2663
  hideFromUI: !0,
2574
- defaultValue: [re]
2664
+ defaultValue: [fe]
2575
2665
  }, {
2576
2666
  name: "content",
2577
2667
  type: "uiBlocks",
2578
2668
  hideFromUI: !0,
2579
- defaultValue: [le]
2669
+ defaultValue: [he]
2580
2670
  }],
2581
2671
  defaultValue: [{
2582
2672
  label: [{
2583
- ...re,
2673
+ ...fe,
2584
2674
  component: {
2585
2675
  name: "Text",
2586
2676
  options: {
@@ -2589,7 +2679,7 @@ const Cn = {
2589
2679
  }
2590
2680
  }],
2591
2681
  content: [{
2592
- ...le,
2682
+ ...he,
2593
2683
  component: {
2594
2684
  name: "Text",
2595
2685
  options: {
@@ -2599,7 +2689,7 @@ const Cn = {
2599
2689
  }]
2600
2690
  }, {
2601
2691
  label: [{
2602
- ...re,
2692
+ ...fe,
2603
2693
  component: {
2604
2694
  name: "Text",
2605
2695
  options: {
@@ -2608,7 +2698,7 @@ const Cn = {
2608
2698
  }
2609
2699
  }],
2610
2700
  content: [{
2611
- ...le,
2701
+ ...he,
2612
2702
  component: {
2613
2703
  name: "Text",
2614
2704
  options: {
@@ -2665,18 +2755,18 @@ const Cn = {
2665
2755
  builderLinkComponent: !0
2666
2756
  }
2667
2757
  };
2668
- function wn(e) {
2669
- var r;
2670
- const [t, n] = I(
2758
+ function _n(e) {
2759
+ var o;
2760
+ const [t, n] = C(
2671
2761
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2672
2762
  );
2673
- function i(o) {
2674
- return e.tabs && e.tabs[o].content;
2763
+ function i(r) {
2764
+ return e.tabs && e.tabs[r].content;
2675
2765
  }
2676
- function a(o) {
2677
- o === t && e.collapsible ? n(-1) : n(o);
2766
+ function a(r) {
2767
+ r === t && e.collapsible ? n(-1) : n(r);
2678
2768
  }
2679
- return /* @__PURE__ */ B("div", { children: [
2769
+ return /* @__PURE__ */ $("div", { children: [
2680
2770
  /* @__PURE__ */ s(
2681
2771
  "div",
2682
2772
  {
@@ -2687,20 +2777,20 @@ function wn(e) {
2687
2777
  justifyContent: e.tabHeaderLayout || "flex-start",
2688
2778
  overflow: "auto"
2689
2779
  },
2690
- children: (r = e.tabs) == null ? void 0 : r.map((o, l) => /* @__PURE__ */ s(
2780
+ children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
2691
2781
  "span",
2692
2782
  {
2693
2783
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2694
2784
  style: {
2695
2785
  ...t === l ? e.activeTabStyle : {}
2696
2786
  },
2697
- onClick: (d) => a(l),
2787
+ onClick: (c) => a(l),
2698
2788
  children: /* @__PURE__ */ s(
2699
- $,
2789
+ _,
2700
2790
  {
2701
2791
  parent: e.builderBlock.id,
2702
2792
  path: `tabs.${l}.label`,
2703
- blocks: o.label,
2793
+ blocks: r.label,
2704
2794
  context: e.builderContext,
2705
2795
  registeredComponents: e.builderComponents,
2706
2796
  linkComponent: e.builderLinkComponent
@@ -2712,7 +2802,7 @@ function wn(e) {
2712
2802
  }
2713
2803
  ),
2714
2804
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2715
- $,
2805
+ _,
2716
2806
  {
2717
2807
  parent: e.builderBlock.id,
2718
2808
  path: `tabs.${t}.content`,
@@ -2724,7 +2814,7 @@ function wn(e) {
2724
2814
  ) }) : null
2725
2815
  ] });
2726
2816
  }
2727
- const In = {
2817
+ const Un = {
2728
2818
  shouldReceiveBuilderProps: {},
2729
2819
  name: "Text",
2730
2820
  static: !0,
@@ -2744,7 +2834,7 @@ const In = {
2744
2834
  textAlign: "center"
2745
2835
  }
2746
2836
  };
2747
- function En(e) {
2837
+ function Hn(e) {
2748
2838
  var t;
2749
2839
  return /* @__PURE__ */ s(
2750
2840
  "div",
@@ -2757,7 +2847,7 @@ function En(e) {
2757
2847
  }
2758
2848
  );
2759
2849
  }
2760
- const Rn = {
2850
+ const Mn = {
2761
2851
  name: "Custom Code",
2762
2852
  static: !0,
2763
2853
  requiredPermissions: ["editCode"],
@@ -2780,43 +2870,43 @@ const Rn = {
2780
2870
  advanced: !0
2781
2871
  }]
2782
2872
  };
2783
- function Pn(e) {
2784
- const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2785
- function o() {
2786
- var d;
2787
- if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2873
+ function qn(e) {
2874
+ const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []);
2875
+ function r() {
2876
+ var c;
2877
+ if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2788
2878
  return;
2789
2879
  const l = t.current.getElementsByTagName("script");
2790
- for (let c = 0; c < l.length; c++) {
2791
- const h = l[c];
2792
- if (h.src) {
2793
- if (n.includes(h.src))
2880
+ for (let u = 0; u < l.length; u++) {
2881
+ const f = l[u];
2882
+ if (f.src) {
2883
+ if (n.includes(f.src))
2794
2884
  continue;
2795
- n.push(h.src);
2796
- const b = document.createElement("script");
2797
- b.async = !0, b.src = h.src, document.head.appendChild(b);
2798
- } else if (!h.type || [
2885
+ n.push(f.src);
2886
+ const g = document.createElement("script");
2887
+ g.async = !0, g.src = f.src, document.head.appendChild(g);
2888
+ } else if (!f.type || [
2799
2889
  "text/javascript",
2800
2890
  "application/javascript",
2801
2891
  "application/ecmascript"
2802
- ].includes(h.type)) {
2803
- if (a.includes(h.innerText))
2892
+ ].includes(f.type)) {
2893
+ if (a.includes(f.innerText))
2804
2894
  continue;
2805
2895
  try {
2806
- a.push(h.innerText), new Function(h.innerText)();
2807
- } catch (b) {
2808
- z.warn(
2896
+ a.push(f.innerText), new Function(f.innerText)();
2897
+ } catch (g) {
2898
+ Z.warn(
2809
2899
  "[BUILDER.IO] `CustomCode`: Error running script:",
2810
- b
2900
+ g
2811
2901
  );
2812
2902
  }
2813
2903
  }
2814
2904
  }
2815
2905
  }
2816
- return R(() => {
2817
- o();
2818
- }, []), R(() => {
2819
- N() && o();
2906
+ return P(() => {
2907
+ r();
2908
+ }, []), P(() => {
2909
+ L() && r();
2820
2910
  }, [e.code]), /* @__PURE__ */ s(
2821
2911
  "div",
2822
2912
  {
@@ -2826,7 +2916,7 @@ function Pn(e) {
2826
2916
  }
2827
2917
  );
2828
2918
  }
2829
- const Vn = {
2919
+ const jn = {
2830
2920
  name: "Embed",
2831
2921
  static: !0,
2832
2922
  inputs: [{
@@ -2841,30 +2931,30 @@ const Vn = {
2841
2931
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2842
2932
  hideFromUI: !0
2843
2933
  }]
2844
- }, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
2845
- function Nn(e) {
2846
- const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []), [o, l] = I(() => !1);
2847
- function d() {
2934
+ }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
2935
+ function Jn(e) {
2936
+ const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []), [r, l] = C(() => !1);
2937
+ function c() {
2848
2938
  if (!t.current || !t.current.getElementsByTagName)
2849
2939
  return;
2850
- const c = t.current.getElementsByTagName("script");
2851
- for (let h = 0; h < c.length; h++) {
2852
- const b = c[h];
2853
- if (b.src && !n.includes(b.src)) {
2854
- n.push(b.src);
2940
+ const u = t.current.getElementsByTagName("script");
2941
+ for (let f = 0; f < u.length; f++) {
2942
+ const g = u[f];
2943
+ if (g.src && !n.includes(g.src)) {
2944
+ n.push(g.src);
2855
2945
  const m = document.createElement("script");
2856
- m.async = !0, m.src = b.src, document.head.appendChild(m);
2857
- } else if (An(b) && !a.includes(b.innerText))
2946
+ m.async = !0, m.src = g.src, document.head.appendChild(m);
2947
+ } else if (Kn(g) && !a.includes(g.innerText))
2858
2948
  try {
2859
- a.push(b.innerText), new Function(b.innerText)();
2949
+ a.push(g.innerText), new Function(g.innerText)();
2860
2950
  } catch (m) {
2861
- z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2951
+ Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2862
2952
  }
2863
2953
  }
2864
2954
  }
2865
- return R(() => {
2866
- t.current && !o && (l(!0), d());
2867
- }, [t.current, o]), /* @__PURE__ */ s(
2955
+ return P(() => {
2956
+ t.current && !r && (l(!0), c());
2957
+ }, [t.current, r]), /* @__PURE__ */ s(
2868
2958
  "div",
2869
2959
  {
2870
2960
  className: "builder-embed",
@@ -2873,7 +2963,7 @@ function Nn(e) {
2873
2963
  }
2874
2964
  );
2875
2965
  }
2876
- const Wn = {
2966
+ const Gn = {
2877
2967
  name: "Form:Form",
2878
2968
  // editableTags: ['builder-form-error']
2879
2969
  defaults: {
@@ -3110,118 +3200,120 @@ const Wn = {
3110
3200
  builderComponents: !0,
3111
3201
  builderLinkComponent: !0
3112
3202
  }
3113
- }, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
3203
+ }, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
3114
3204
  const e = process.env.NODE_ENV || "production";
3115
- return Dn.includes(e) ? e : "production";
3205
+ return Qn.includes(e) ? e : "production";
3116
3206
  };
3117
- function Fn(e) {
3118
- const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3119
- function d(b) {
3120
- var x, u;
3207
+ function Xn(e) {
3208
+ const t = H(null), [n, i] = C(() => "unsubmitted"), [a, o] = C(() => null), [r, l] = C(() => "");
3209
+ function c(g) {
3210
+ var v, d;
3121
3211
  const m = {
3122
3212
  ...e.builderContext.rootState,
3123
- ...b
3213
+ ...g
3124
3214
  };
3125
- e.builderContext.rootSetState ? (u = (x = e.builderContext).rootSetState) == null || u.call(x, m) : e.builderContext.rootState = m;
3215
+ e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
3126
3216
  }
3127
- function c() {
3128
- return N() && e.previewState || n;
3217
+ function u() {
3218
+ return L() && e.previewState || n;
3129
3219
  }
3130
- function h(b) {
3131
- var x;
3220
+ function f(g) {
3221
+ var v;
3132
3222
  const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3133
3223
  if (e.sendSubmissionsTo === "zapier")
3134
- b.preventDefault();
3224
+ g.preventDefault();
3135
3225
  else if (m) {
3136
3226
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3137
- b.preventDefault();
3227
+ g.preventDefault();
3138
3228
  return;
3139
3229
  }
3140
- b.preventDefault();
3141
- const u = b.currentTarget || b.target, g = e.customHeaders || {};
3142
- let v;
3143
- const p = new FormData(u), k = Array.from(u.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
3144
- let y;
3145
- const T = f.name;
3146
- if (f instanceof HTMLInputElement)
3147
- if (f.type === "radio") {
3148
- if (f.checked)
3149
- return y = f.name, {
3150
- key: T,
3151
- value: y
3230
+ g.preventDefault();
3231
+ const d = g.currentTarget || g.target, h = e.customHeaders || {};
3232
+ let p;
3233
+ const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
3234
+ let S;
3235
+ const w = b.name;
3236
+ if (b instanceof HTMLInputElement)
3237
+ if (b.type === "radio") {
3238
+ if (b.checked)
3239
+ return S = b.name, {
3240
+ key: w,
3241
+ value: S
3152
3242
  };
3153
- } else if (f.type === "checkbox")
3154
- y = f.checked;
3155
- else if (f.type === "number" || f.type === "range") {
3156
- const E = f.valueAsNumber;
3157
- isNaN(E) || (y = E);
3243
+ } else if (b.type === "checkbox")
3244
+ S = b.checked;
3245
+ else if (b.type === "number" || b.type === "range") {
3246
+ const A = b.valueAsNumber;
3247
+ isNaN(A) || (S = A);
3158
3248
  } else
3159
- f.type === "file" ? y = f.files : y = f.value;
3249
+ b.type === "file" ? S = b.files : S = b.value;
3160
3250
  else
3161
- y = f.value;
3251
+ S = b.value;
3162
3252
  return {
3163
- key: T,
3164
- value: y
3253
+ key: w,
3254
+ value: S
3165
3255
  };
3166
3256
  });
3167
- let C = e.contentType;
3168
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: f }) => {
3169
- (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
3170
- }), C !== "application/json")
3171
- v = p;
3257
+ let k = e.contentType;
3258
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(x).forEach(({ value: b }) => {
3259
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (k = "multipart/form-data");
3260
+ }), k !== "application/json")
3261
+ p = y;
3172
3262
  else {
3173
- const f = {};
3174
- Array.from(k).forEach(({ value: y, key: T }) => {
3175
- We(f, T, y);
3176
- }), v = JSON.stringify(f);
3263
+ const b = {};
3264
+ Array.from(x).forEach(({ value: S, key: w }) => {
3265
+ Ue(b, w, S);
3266
+ }), p = JSON.stringify(b);
3177
3267
  }
3178
- C && C !== "multipart/form-data" && (m && ((x = e.action) != null && x.includes("zapier.com")) || (g["content-type"] = C));
3179
- const V = new CustomEvent("presubmit", { detail: { body: v } });
3268
+ k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3269
+ const V = new CustomEvent("presubmit", { detail: { body: p } });
3180
3270
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3181
3271
  return;
3182
3272
  i("sending");
3183
- const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3273
+ const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3184
3274
  e.sendSubmissionsToEmail || ""
3185
- )}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? w : e.action;
3186
- Ve(S), fetch(S, { body: v, headers: g, method: e.method || "post" }).then(
3187
- async (f) => {
3188
- let y;
3189
- const T = f.headers.get("content-type");
3190
- if (T && T.indexOf("application/json") !== -1 ? y = await f.json() : y = await f.text(), !f.ok && e.errorMessagePath) {
3191
- let E = $e(y, e.errorMessagePath);
3192
- E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3275
+ )}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
3276
+ Fe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
3277
+ async (b) => {
3278
+ let S;
3279
+ const w = b.headers.get("content-type");
3280
+ if (w && w.indexOf("application/json") !== -1 ? S = await b.json() : S = await b.text(), !b.ok && e.errorMessagePath) {
3281
+ let A = Me(S, e.errorMessagePath);
3282
+ A && (typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A }));
3193
3283
  }
3194
- if (r(y), i(f.ok ? "success" : "error"), f.ok) {
3195
- const E = new CustomEvent("submit:success", {
3196
- detail: { res: f, body: y }
3284
+ if (o(S), i(b.ok ? "success" : "error"), b.ok) {
3285
+ const A = new CustomEvent("submit:success", {
3286
+ detail: { res: b, body: S }
3197
3287
  });
3198
3288
  if (t.current) {
3199
- if (t.current.dispatchEvent(E), E.defaultPrevented)
3289
+ if (t.current.dispatchEvent(A), A.defaultPrevented)
3200
3290
  return;
3201
3291
  e.resetFormOnSubmit !== !1 && t.current.reset();
3202
3292
  }
3203
3293
  if (e.successUrl)
3204
3294
  if (t.current) {
3205
- const A = new CustomEvent("route", {
3295
+ const F = new CustomEvent("route", {
3206
3296
  detail: { url: e.successUrl }
3207
3297
  });
3208
- t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3298
+ t.current.dispatchEvent(F), F.defaultPrevented || (location.href = e.successUrl);
3209
3299
  } else
3210
3300
  location.href = e.successUrl;
3211
3301
  }
3212
3302
  },
3213
- (f) => {
3214
- const y = new CustomEvent("submit:error", {
3215
- detail: { error: f }
3303
+ (b) => {
3304
+ const S = new CustomEvent("submit:error", {
3305
+ detail: { error: b }
3216
3306
  });
3217
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(f), i("error"));
3307
+ t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (o(b), i("error"));
3218
3308
  }
3219
3309
  );
3220
3310
  }
3221
3311
  }
3222
- return /* @__PURE__ */ B(P, { children: [
3312
+ return /* @__PURE__ */ $(R, { children: [
3313
+ " ",
3314
+ /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
3223
3315
  " ",
3224
- /* @__PURE__ */ B(
3316
+ /* @__PURE__ */ $(
3225
3317
  "form",
3226
3318
  {
3227
3319
  validate: e.validate,
@@ -3229,29 +3321,29 @@ function Fn(e) {
3229
3321
  action: !e.sendWithJs && e.action,
3230
3322
  method: e.method,
3231
3323
  name: e.name,
3232
- onSubmit: (b) => h(b),
3324
+ onSubmit: (g) => f(g),
3233
3325
  ...e.attributes,
3234
3326
  children: [
3235
3327
  e.children,
3236
- c() === "error" ? /* @__PURE__ */ s(
3237
- $,
3328
+ u() === "error" ? /* @__PURE__ */ s(
3329
+ _,
3238
3330
  {
3239
3331
  path: "errorMessage",
3240
3332
  blocks: e.errorMessage,
3241
3333
  context: e.builderContext
3242
3334
  }
3243
3335
  ) : null,
3244
- c() === "sending" ? /* @__PURE__ */ s(
3245
- $,
3336
+ u() === "sending" ? /* @__PURE__ */ s(
3337
+ _,
3246
3338
  {
3247
3339
  path: "sendingMessage",
3248
3340
  blocks: e.sendingMessage,
3249
3341
  context: e.builderContext
3250
3342
  }
3251
3343
  ) : null,
3252
- c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3253
- c() === "success" ? /* @__PURE__ */ s(
3254
- $,
3344
+ u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3345
+ u() === "success" ? /* @__PURE__ */ s(
3346
+ _,
3255
3347
  {
3256
3348
  path: "successMessage",
3257
3349
  blocks: e.successMessage,
@@ -3261,12 +3353,10 @@ function Fn(e) {
3261
3353
  ]
3262
3354
  }
3263
3355
  ),
3264
- " ",
3265
- /* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
3266
3356
  " "
3267
3357
  ] });
3268
3358
  }
3269
- const Ln = {
3359
+ const Zn = {
3270
3360
  name: "Form:Input",
3271
3361
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3272
3362
  inputs: [
@@ -3318,12 +3408,12 @@ const Ln = {
3318
3408
  borderColor: "#ccc"
3319
3409
  }
3320
3410
  };
3321
- function On(e) {
3322
- return /* @__PURE__ */ Ne(
3411
+ function ei(e) {
3412
+ return /* @__PURE__ */ _e(
3323
3413
  "input",
3324
3414
  {
3325
3415
  ...e.attributes,
3326
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3416
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3327
3417
  placeholder: e.placeholder,
3328
3418
  type: e.type,
3329
3419
  name: e.name,
@@ -3333,7 +3423,7 @@ function On(e) {
3333
3423
  }
3334
3424
  );
3335
3425
  }
3336
- const Un = {
3426
+ const ti = {
3337
3427
  name: "Form:Select",
3338
3428
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3339
3429
  defaultStyles: {
@@ -3376,14 +3466,14 @@ const Un = {
3376
3466
  static: !0,
3377
3467
  noWrap: !0
3378
3468
  };
3379
- function _n(e) {
3469
+ function ni(e) {
3380
3470
  var t;
3381
- return /* @__PURE__ */ Ne(
3471
+ return /* @__PURE__ */ _e(
3382
3472
  "select",
3383
3473
  {
3384
3474
  ...e.attributes,
3385
3475
  value: e.value,
3386
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
3476
+ key: L() && e.defaultValue ? e.defaultValue : "default-key",
3387
3477
  defaultValue: e.defaultValue,
3388
3478
  name: e.name,
3389
3479
  required: e.required
@@ -3391,7 +3481,7 @@ function _n(e) {
3391
3481
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
3392
3482
  );
3393
3483
  }
3394
- const qn = {
3484
+ const ii = {
3395
3485
  name: "Form:SubmitButton",
3396
3486
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3397
3487
  defaultStyles: {
@@ -3417,10 +3507,10 @@ const qn = {
3417
3507
  // TODO: defaultChildren
3418
3508
  // canHaveChildren: true,
3419
3509
  };
3420
- function Hn(e) {
3510
+ function ai(e) {
3421
3511
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
3422
3512
  }
3423
- const Mn = {
3513
+ const ri = {
3424
3514
  name: "Form:TextArea",
3425
3515
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3426
3516
  inputs: [{
@@ -3457,7 +3547,7 @@ const Mn = {
3457
3547
  static: !0,
3458
3548
  noWrap: !0
3459
3549
  };
3460
- function jn(e) {
3550
+ function oi(e) {
3461
3551
  return /* @__PURE__ */ s(
3462
3552
  "textarea",
3463
3553
  {
@@ -3470,7 +3560,7 @@ function jn(e) {
3470
3560
  }
3471
3561
  );
3472
3562
  }
3473
- const zn = {
3563
+ const li = {
3474
3564
  // friendlyName?
3475
3565
  name: "Raw:Img",
3476
3566
  hideFromInsertMenu: !0,
@@ -3479,13 +3569,13 @@ const zn = {
3479
3569
  name: "image",
3480
3570
  bubble: !0,
3481
3571
  type: "file",
3482
- allowedFileTypes: he,
3572
+ allowedFileTypes: Se,
3483
3573
  required: !0
3484
3574
  }],
3485
3575
  noWrap: !0,
3486
3576
  static: !0
3487
3577
  };
3488
- function Kn(e) {
3578
+ function si(e) {
3489
3579
  return /* @__PURE__ */ s(
3490
3580
  "img",
3491
3581
  {
@@ -3497,10 +3587,10 @@ function Kn(e) {
3497
3587
  src: e.imgSrc || e.image,
3498
3588
  ...e.attributes
3499
3589
  },
3500
- N() && e.imgSrc || "default-key"
3590
+ L() && e.imgSrc || "default-key"
3501
3591
  );
3502
3592
  }
3503
- const Jn = {
3593
+ const ci = {
3504
3594
  name: "Video",
3505
3595
  canHaveChildren: !0,
3506
3596
  defaultStyles: {
@@ -3511,14 +3601,14 @@ const Jn = {
3511
3601
  inputs: [{
3512
3602
  name: "video",
3513
3603
  type: "file",
3514
- allowedFileTypes: un,
3604
+ allowedFileTypes: An,
3515
3605
  bubble: !0,
3516
3606
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3517
3607
  required: !0
3518
3608
  }, {
3519
3609
  name: "posterImage",
3520
3610
  type: "file",
3521
- allowedFileTypes: he,
3611
+ allowedFileTypes: Se,
3522
3612
  helperText: "Image to show before the video plays"
3523
3613
  }, {
3524
3614
  name: "autoPlay",
@@ -3585,9 +3675,9 @@ const Jn = {
3585
3675
  builderBlock: !0
3586
3676
  }
3587
3677
  };
3588
- function Gn(e) {
3589
- var o, l, d, c, h, b, m;
3590
- const t = L(null);
3678
+ function ui(e) {
3679
+ var r, l, c, u, f, g, m;
3680
+ const t = H(null);
3591
3681
  function n() {
3592
3682
  return {
3593
3683
  ...e.autoPlay === !0 ? {
@@ -3612,32 +3702,32 @@ function Gn(e) {
3612
3702
  ...n()
3613
3703
  };
3614
3704
  }
3615
- const [a, r] = I(() => {
3705
+ const [a, o] = C(() => {
3616
3706
  });
3617
- return R(() => {
3707
+ return P(() => {
3618
3708
  if (e.lazyLoad) {
3619
- const x = new IntersectionObserver(function(u) {
3620
- u.forEach(function(g) {
3621
- if (!g.isIntersecting)
3709
+ const v = new IntersectionObserver(function(d) {
3710
+ d.forEach(function(h) {
3711
+ if (!h.isIntersecting)
3622
3712
  return;
3623
- const v = g.target;
3713
+ const p = h.target;
3624
3714
  try {
3625
- Array.from(v.children).filter(
3626
- (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3627
- ).forEach((p) => {
3628
- const k = p.dataset.src;
3629
- k && (p.src = k);
3630
- }), v.load(), x.unobserve(v);
3631
- } catch (p) {
3632
- console.error("Error loading lazy video:", p);
3715
+ Array.from(p.children).filter(
3716
+ (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3717
+ ).forEach((y) => {
3718
+ const x = y.dataset.src;
3719
+ x && (y.src = x);
3720
+ }), p.load(), v.unobserve(p);
3721
+ } catch (y) {
3722
+ console.error("Error loading lazy video:", y);
3633
3723
  }
3634
3724
  });
3635
3725
  });
3636
- t.current && x.observe(t.current), r(x);
3726
+ t.current && v.observe(t.current), o(v);
3637
3727
  }
3638
- }, []), R(() => () => {
3728
+ }, []), P(() => () => {
3639
3729
  a && a.disconnect();
3640
- }, []), /* @__PURE__ */ B(
3730
+ }, []), /* @__PURE__ */ $(
3641
3731
  "div",
3642
3732
  {
3643
3733
  style: {
@@ -3654,7 +3744,7 @@ function Gn(e) {
3654
3744
  style: {
3655
3745
  width: "100%",
3656
3746
  height: "100%",
3657
- ...(o = e.attributes) == null ? void 0 : o.style,
3747
+ ...(r = e.attributes) == null ? void 0 : r.style,
3658
3748
  objectFit: e.fit,
3659
3749
  objectPosition: e.position,
3660
3750
  // Hack to get object fit to work as expected and
@@ -3678,7 +3768,7 @@ function Gn(e) {
3678
3768
  )
3679
3769
  }
3680
3770
  ),
3681
- e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
3771
+ e.aspectRatio && !(e.fitContent && ((c = (l = e.builderBlock) == null ? void 0 : l.children) != null && c.length)) ? /* @__PURE__ */ s(
3682
3772
  "div",
3683
3773
  {
3684
3774
  style: {
@@ -3689,7 +3779,7 @@ function Gn(e) {
3689
3779
  }
3690
3780
  }
3691
3781
  ) : null,
3692
- (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3782
+ (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ s(
3693
3783
  "div",
3694
3784
  {
3695
3785
  style: {
@@ -3700,7 +3790,7 @@ function Gn(e) {
3700
3790
  children: e.children
3701
3791
  }
3702
3792
  ) : null,
3703
- (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3793
+ (m = (g = e.builderBlock) == null ? void 0 : g.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3704
3794
  "div",
3705
3795
  {
3706
3796
  style: {
@@ -3721,67 +3811,67 @@ function Gn(e) {
3721
3811
  }
3722
3812
  );
3723
3813
  }
3724
- const Qn = () => [{
3725
- component: Pn,
3726
- ...Rn
3727
- }, {
3728
- component: Nn,
3729
- ...Vn
3730
- }, {
3731
- component: Fn,
3732
- ...Wn
3814
+ const di = () => [{
3815
+ component: qn,
3816
+ ...Mn
3733
3817
  }, {
3734
- component: On,
3735
- ...Ln
3818
+ component: Jn,
3819
+ ...jn
3736
3820
  }, {
3737
- component: Hn,
3738
- ...qn
3821
+ component: Xn,
3822
+ ...Gn
3739
3823
  }, {
3740
- component: _n,
3741
- ...Un
3824
+ component: ei,
3825
+ ...Zn
3742
3826
  }, {
3743
- component: jn,
3744
- ...Mn
3827
+ component: ai,
3828
+ ...ii
3745
3829
  }, {
3746
- component: Kn,
3747
- ...zn
3830
+ component: ni,
3831
+ ...ti
3748
3832
  }, {
3749
- component: Gn,
3750
- ...Jn
3751
- }], we = () => [{
3752
- component: dt,
3753
- ...ln
3833
+ component: oi,
3834
+ ...ri
3754
3835
  }, {
3755
- component: Xt,
3756
- ...sn
3836
+ component: si,
3837
+ ...li
3757
3838
  }, {
3758
- component: Zt,
3759
- ...cn
3839
+ component: ui,
3840
+ ...ci
3841
+ }], Be = () => [{
3842
+ component: kt,
3843
+ ...Rn
3760
3844
  }, {
3761
- component: nn,
3762
- ...dn
3845
+ component: un,
3846
+ ...Pn
3763
3847
  }, {
3764
- component: an,
3765
- ...xn
3848
+ component: dn,
3849
+ ...Vn
3766
3850
  }, {
3767
- component: kn,
3768
- ...Sn
3851
+ component: hn,
3852
+ ...Bn
3769
3853
  }, {
3770
- component: Si,
3771
- ...Cn
3854
+ component: gn,
3855
+ ...Wn
3772
3856
  }, {
3773
- component: En,
3774
- ...In
3857
+ component: Fn,
3858
+ ...Dn
3775
3859
  }, {
3776
- component: vn,
3777
- ...mn
3860
+ component: Di,
3861
+ ...Ln
3778
3862
  }, {
3779
- component: wn,
3780
- ...Tn
3863
+ component: Hn,
3864
+ ...Un
3865
+ }, ...nt.includes(D) ? [{
3866
+ component: $n,
3867
+ ...Nn
3868
+ }] : [], {
3869
+ component: _n,
3870
+ ...On
3781
3871
  }, {
3782
- component: rn,
3783
- ...on
3784
- }, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3872
+ component: En,
3873
+ ...wn
3874
+ }, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
3785
3875
  function getAndSetVariantId() {
3786
3876
  function setCookie(name, value, days) {
3787
3877
  let expires = '';
@@ -3840,7 +3930,7 @@ const Qn = () => [{
3840
3930
  }).join('');
3841
3931
  styleEl.innerHTML = newStyleStr;
3842
3932
  }
3843
- }`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3933
+ }`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3844
3934
  if (!navigator.cookieEnabled) {
3845
3935
  return;
3846
3936
  }
@@ -3874,29 +3964,29 @@ const Qn = () => [{
3874
3964
  thisScriptEl?.remove();
3875
3965
  }
3876
3966
  return;
3877
- }`, Ke = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3967
+ }`, at = "builderIoAbTest", rt = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3878
3968
  ...t,
3879
3969
  testVariationId: t.id,
3880
3970
  id: e == null ? void 0 : e.id
3881
- })), Zn = ({
3971
+ })), hi = ({
3882
3972
  canTrack: e,
3883
3973
  content: t
3884
- }) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = O === "angular", Ge = ei(O), ni = () => `
3885
- window.${Ke} = ${Yn}
3886
- window.${Je} = ${Xn}
3887
- `, ii = (e, t) => `
3888
- window.${Ke}(
3889
- "${t}",${JSON.stringify(e)}, ${Ge}, ${ti}
3890
- )`, ai = ({
3974
+ }) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = D === "angular", ot = gi(D), yi = () => `
3975
+ window.${at} = ${mi}
3976
+ window.${rt} = ${fi}
3977
+ `, pi = (e, t) => `
3978
+ window.${at}(
3979
+ "${t}",${JSON.stringify(e)}, ${ot}, ${bi}
3980
+ )`, vi = ({
3891
3981
  contentId: e,
3892
3982
  variationId: t
3893
- }) => `window.${Je}(
3894
- "${t}", "${e}", ${Ge}
3983
+ }) => `window.${rt}(
3984
+ "${t}", "${e}", ${ot}
3895
3985
  )`;
3896
- function Ie(e) {
3986
+ function Ne(e) {
3897
3987
  return Math.round(e * 1e3) / 1e3;
3898
3988
  }
3899
- const oi = (e, t, n = !0) => {
3989
+ const xi = (e, t, n = !0) => {
3900
3990
  if (!(e instanceof HTMLElement))
3901
3991
  return null;
3902
3992
  let i = n ? e : e.parentElement;
@@ -3907,37 +3997,37 @@ const oi = (e, t, n = !0) => {
3907
3997
  return i;
3908
3998
  } while (i = i.parentElement);
3909
3999
  return null;
3910
- }, ri = (e) => oi(e, (t) => {
4000
+ }, Si = (e) => xi(e, (t) => {
3911
4001
  const n = t.getAttribute("builder-id") || t.id;
3912
4002
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3913
- }), Ee = ({
4003
+ }), $e = ({
3914
4004
  event: e,
3915
4005
  target: t
3916
4006
  }) => {
3917
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Ie(i / n.width), o = Ie(a / n.height);
4007
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ne(i / n.width), r = Ne(a / n.height);
3918
4008
  return {
3919
- x: r,
3920
- y: o
4009
+ x: o,
4010
+ y: r
3921
4011
  };
3922
- }, li = (e) => {
3923
- const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4012
+ }, ki = (e) => {
4013
+ const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3924
4014
  return {
3925
4015
  targetBuilderElement: i || void 0,
3926
4016
  metadata: {
3927
- targetOffset: t ? Ee({
4017
+ targetOffset: t ? $e({
3928
4018
  event: e,
3929
4019
  target: t
3930
4020
  }) : void 0,
3931
- builderTargetOffset: n ? Ee({
4021
+ builderTargetOffset: n ? $e({
3932
4022
  event: e,
3933
4023
  target: n
3934
4024
  }) : void 0,
3935
4025
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3936
4026
  }
3937
4027
  };
3938
- }, si = ["svelte", "qwik", "vue"], Re = () => si.includes(O) && (N() || X()), ci = (e) => {
3939
- var r, o;
3940
- 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;
4028
+ }, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(D) && (L() || oe()), Ti = (e) => {
4029
+ var o, r;
4030
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
3941
4031
  let a = "";
3942
4032
  if (i && t && n && (a += `
3943
4033
  @font-face {
@@ -3950,26 +4040,26 @@ font-weight: 400;
3950
4040
  for (const l in e.files) {
3951
4041
  if (!(String(Number(l)) === l))
3952
4042
  continue;
3953
- const c = e.files[l];
3954
- c && c !== i && (a += `
4043
+ const u = e.files[l];
4044
+ u && u !== i && (a += `
3955
4045
  @font-face {
3956
4046
  font-family: "${t}";
3957
- src: url('${c}') format('woff2');
4047
+ src: url('${u}') format('woff2');
3958
4048
  font-display: fallback;
3959
4049
  font-weight: ${l};
3960
4050
  }
3961
4051
  `.trim());
3962
4052
  }
3963
4053
  return a;
3964
- }, ui = ({
4054
+ }, Ii = ({
3965
4055
  customFonts: e
3966
4056
  }) => {
3967
4057
  var t;
3968
- return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
3969
- }, di = ({
4058
+ return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
4059
+ }, wi = ({
3970
4060
  cssCode: e,
3971
4061
  contentId: t
3972
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
4062
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
3973
4063
  .builder-button {
3974
4064
  all: unset;
3975
4065
  }
@@ -3986,40 +4076,40 @@ font-weight: ${l};
3986
4076
  text-align: inherit;
3987
4077
  font-family: inherit;
3988
4078
  }
3989
- `, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
3990
- function gi(e) {
3991
- var k, C, V;
3992
- const t = L(null);
3993
- I(() => !1);
3994
- function n(w) {
3995
- var f, y;
3996
- const S = {
4079
+ `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4080
+ function Vi(e) {
4081
+ var x, k, V;
4082
+ const t = H(null);
4083
+ C(() => !1);
4084
+ function n(T) {
4085
+ var b, S;
4086
+ const I = {
3997
4087
  ...e.builderContextSignal.rootState,
3998
- ...w
4088
+ ...T
3999
4089
  };
4000
- e.builderContextSignal.rootSetState ? (y = (f = e.builderContextSignal).rootSetState) == null || y.call(f, S) : e.setBuilderContextSignal((T) => ({
4001
- ...T,
4002
- rootState: S
4090
+ e.builderContextSignal.rootSetState ? (S = (b = e.builderContextSignal).rootSetState) == null || S.call(b, I) : e.setBuilderContextSignal((w) => ({
4091
+ ...w,
4092
+ rootState: I
4003
4093
  }));
4004
4094
  }
4005
- function i(w) {
4006
- var f, y, T, E, A;
4007
- const S = {
4095
+ function i(T) {
4096
+ var b, S, w, A, F;
4097
+ const I = {
4008
4098
  ...e.builderContextSignal.content,
4009
- ...w,
4099
+ ...T,
4010
4100
  data: {
4011
- ...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
4012
- ...w == null ? void 0 : w.data
4101
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
4102
+ ...T == null ? void 0 : T.data
4013
4103
  },
4014
4104
  meta: {
4015
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
4016
- ...w == null ? void 0 : w.meta,
4017
- breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
4105
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
4106
+ ...T == null ? void 0 : T.meta,
4107
+ breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((F = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : F.breakpoints)
4018
4108
  }
4019
4109
  };
4020
- e.setBuilderContextSignal((W) => ({
4021
- ...W,
4022
- content: S
4110
+ e.setBuilderContextSignal((O) => ({
4111
+ ...O,
4112
+ content: I
4023
4113
  }));
4024
4114
  }
4025
4115
  function a() {
@@ -4028,65 +4118,65 @@ function gi(e) {
4028
4118
  "aria-hidden": !0
4029
4119
  };
4030
4120
  }
4031
- const [r, o] = I(
4121
+ const [o, r] = C(
4032
4122
  () => e.contentWrapper || "div"
4033
4123
  );
4034
- function l(w) {
4035
- return et({
4124
+ function l(T) {
4125
+ return dt({
4036
4126
  model: e.model,
4037
4127
  trustedHosts: e.trustedHosts,
4038
4128
  callbacks: {
4039
- configureSdk: (S) => {
4040
- var T;
4041
- const { breakpoints: f, contentId: y } = S;
4042
- !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || f && i({
4129
+ configureSdk: (I) => {
4130
+ var w;
4131
+ const { breakpoints: b, contentId: S } = I;
4132
+ !S || S !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || b && i({
4043
4133
  meta: {
4044
- breakpoints: f
4134
+ breakpoints: b
4045
4135
  }
4046
4136
  });
4047
4137
  },
4048
- animation: (S) => {
4049
- Ue(S);
4138
+ animation: (I) => {
4139
+ Ke(I);
4050
4140
  },
4051
- contentUpdate: (S) => {
4052
- i(S);
4141
+ contentUpdate: (I) => {
4142
+ i(I);
4053
4143
  },
4054
- stateUpdate: (S) => {
4055
- n(S);
4144
+ stateUpdate: (I) => {
4145
+ n(I);
4056
4146
  }
4057
4147
  }
4058
- })(w);
4148
+ })(T);
4059
4149
  }
4060
- const [d, c] = I(() => ({})), [h, b] = I(() => ({})), [m, x] = I(() => !1);
4061
- function u(w) {
4062
- var S, f;
4150
+ const [c, u] = C(() => ({})), [f, g] = C(() => ({})), [m, v] = C(() => !1);
4151
+ function d(T) {
4152
+ var I, b;
4063
4153
  if (e.builderContextSignal.content) {
4064
- const y = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, T = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
4065
- pe({
4154
+ const S = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
4155
+ Te({
4066
4156
  apiHost: e.apiHost,
4067
4157
  type: "click",
4068
- canTrack: M(e.canTrack),
4069
- contentId: T,
4158
+ canTrack: X(e.canTrack),
4159
+ contentId: w,
4070
4160
  apiKey: e.apiKey,
4071
- variationId: y !== T ? y : void 0,
4072
- ...li(w),
4161
+ variationId: S !== w ? S : void 0,
4162
+ ...ki(T),
4073
4163
  unique: !m
4074
4164
  });
4075
4165
  }
4076
- m || x(!0);
4166
+ m || v(!0);
4077
4167
  }
4078
- function g() {
4079
- var S, f, y;
4080
- const w = (y = (f = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : f.httpRequests) != null ? y : {};
4081
- Object.entries(w).forEach(([T, E]) => {
4082
- if (!E || h[T] || d[T] && !N())
4168
+ function h() {
4169
+ var I, b, S;
4170
+ const T = (S = (b = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : b.httpRequests) != null ? S : {};
4171
+ Object.entries(T).forEach(([w, A]) => {
4172
+ if (!A || f[w] || c[w] && !L())
4083
4173
  return;
4084
- h[T] = !0;
4085
- const A = E.replace(
4174
+ f[w] = !0;
4175
+ const F = A.replace(
4086
4176
  /{{([^}]+)}}/g,
4087
- (W, D) => String(
4088
- _({
4089
- code: D,
4177
+ (O, W) => String(
4178
+ J({
4179
+ code: W,
4090
4180
  context: e.context || {},
4091
4181
  localState: void 0,
4092
4182
  rootState: e.builderContextSignal.rootState,
@@ -4094,24 +4184,24 @@ function gi(e) {
4094
4184
  })
4095
4185
  )
4096
4186
  );
4097
- Ve(A), fetch(A).then((W) => W.json()).then((W) => {
4187
+ Fe(F), fetch(F).then((O) => O.json()).then((O) => {
4098
4188
  n({
4099
- [T]: W
4100
- }), d[T] = !0;
4101
- }).catch((W) => {
4102
- console.error("error fetching dynamic data", E, W);
4189
+ [w]: O
4190
+ }), c[w] = !0;
4191
+ }).catch((O) => {
4192
+ console.error("error fetching dynamic data", A, O);
4103
4193
  }).finally(() => {
4104
- h[T] = !1;
4194
+ f[w] = !1;
4105
4195
  });
4106
4196
  });
4107
4197
  }
4108
- function v() {
4109
- N() && window.dispatchEvent(
4198
+ function p() {
4199
+ L() && window.dispatchEvent(
4110
4200
  new CustomEvent(
4111
4201
  "builder:component:stateChange",
4112
4202
  {
4113
4203
  detail: {
4114
- state: ue(e.builderContextSignal.rootState),
4204
+ state: ye(e.builderContextSignal.rootState),
4115
4205
  ref: {
4116
4206
  name: e.model
4117
4207
  }
@@ -4120,11 +4210,11 @@ function gi(e) {
4120
4210
  )
4121
4211
  );
4122
4212
  }
4123
- const p = L(!1);
4124
- return p.current || (g(), v(), p.current = !0), R(() => {
4125
- var w, S, f, y, T;
4126
- if (U()) {
4127
- N() && !e.isNestedRender && (window.addEventListener("message", l), Qe(), Ye({
4213
+ const y = H(!1);
4214
+ return y.current || (h(), p(), y.current = !0), P(() => {
4215
+ var T, I, b, S, w;
4216
+ if (K()) {
4217
+ L() && !e.isNestedRender && (window.addEventListener("message", l), lt(), st({
4128
4218
  ...e.locale ? {
4129
4219
  locale: e.locale
4130
4220
  } : {},
@@ -4134,80 +4224,80 @@ function gi(e) {
4134
4224
  ...e.trustedHosts ? {
4135
4225
  trustedHosts: e.trustedHosts
4136
4226
  } : {},
4137
- modelName: (w = e.model) != null ? w : "",
4227
+ modelName: (T = e.model) != null ? T : "",
4138
4228
  apiKey: e.apiKey
4139
4229
  }), Object.values(
4140
4230
  e.builderContextSignal.componentInfos
4141
- ).forEach((D) => {
4142
- var F, J;
4143
- if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
4144
- const te = Xe(D);
4145
- (J = window.parent) == null || J.postMessage(te, "*");
4231
+ ).forEach((W) => {
4232
+ var U, E;
4233
+ if (!((U = W.models) != null && U.length) || W.models.includes(e.model)) {
4234
+ const B = ct(W);
4235
+ (E = window.parent) == null || E.postMessage(B, "*");
4146
4236
  }
4147
4237
  }), window.addEventListener(
4148
4238
  "builder:component:stateChangeListenerActivated",
4149
- v
4239
+ p
4150
4240
  ));
4151
- const E = e.builderContextSignal.content && M(e.canTrack), A = Ze({
4152
- name: `builder.tests.${(S = e.builderContextSignal.content) == null ? void 0 : S.id}`,
4241
+ const A = e.builderContextSignal.content && X(e.canTrack), F = ut({
4242
+ name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4153
4243
  canTrack: !0
4154
- }), W = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId;
4155
- if (E && W === A) {
4156
- const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4157
- pe({
4244
+ }), O = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId;
4245
+ if (A && O === F) {
4246
+ const W = (S = e.builderContextSignal.content) == null ? void 0 : S.id, U = e.apiKey;
4247
+ Te({
4158
4248
  apiHost: e.apiHost,
4159
4249
  type: "impression",
4160
4250
  canTrack: !0,
4161
- contentId: D,
4162
- apiKey: F,
4163
- variationId: A !== D ? A : void 0
4251
+ contentId: W,
4252
+ apiKey: U,
4253
+ variationId: F !== W ? F : void 0
4164
4254
  });
4165
4255
  }
4166
- if (X() && !N()) {
4167
- const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
4168
- `builder.overrides.${F}`
4169
- ), te = D.get("apiKey") || D.get("builder.space");
4170
- (F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Be({
4256
+ if (oe() && !L()) {
4257
+ const W = new URL(location.href).searchParams, U = W.get("builder.preview"), E = W.get(
4258
+ `builder.overrides.${U}`
4259
+ ), B = W.get("apiKey") || W.get("builder.space");
4260
+ (U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
4171
4261
  model: e.model,
4172
4262
  apiKey: e.apiKey,
4173
4263
  apiVersion: e.builderContextSignal.apiVersion,
4174
- ...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
4264
+ ...U === "BUILDER_STUDIO" && ((w = e.context) != null && w.symbolId) ? {
4175
4265
  query: {
4176
4266
  id: e.context.symbolId
4177
4267
  }
4178
4268
  } : {}
4179
- }).then((ge) => {
4180
- ge && i(ge);
4269
+ }).then((N) => {
4270
+ N && i(N);
4181
4271
  });
4182
4272
  }
4183
4273
  }
4184
- }, []), R(() => {
4274
+ }, []), P(() => {
4185
4275
  e.content && i(e.content);
4186
- }, [e.content]), R(() => {
4187
- v();
4188
- }, [e.builderContextSignal.rootState]), R(() => {
4276
+ }, [e.content]), P(() => {
4277
+ p();
4278
+ }, [e.builderContextSignal.rootState]), P(() => {
4189
4279
  e.data && n(e.data);
4190
- }, [e.data]), R(() => {
4280
+ }, [e.data]), P(() => {
4191
4281
  e.locale && n({
4192
4282
  locale: e.locale
4193
4283
  });
4194
- }, [e.locale]), R(() => () => {
4195
- U() && (window.removeEventListener("message", l), window.removeEventListener(
4284
+ }, [e.locale]), P(() => () => {
4285
+ K() && (window.removeEventListener("message", l), window.removeEventListener(
4196
4286
  "builder:component:stateChangeListenerActivated",
4197
- v
4287
+ p
4198
4288
  ));
4199
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4200
- r,
4289
+ }, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
4290
+ o,
4201
4291
  {
4202
4292
  ref: t,
4203
- onClick: (w) => u(w),
4204
- "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4293
+ onClick: (T) => d(T),
4294
+ "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
4205
4295
  "builder-model": e.model,
4206
- className: hi(
4207
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4296
+ className: Pi(
4297
+ ((k = e.content) == null ? void 0 : k.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
4208
4298
  ),
4209
4299
  style: {
4210
- display: !e.builderContextSignal.content && Re() ? "none" : void 0
4300
+ display: !e.builderContextSignal.content && We() ? "none" : void 0
4211
4301
  },
4212
4302
  ...a(),
4213
4303
  ...e.contentWrapperProps,
@@ -4215,21 +4305,21 @@ function gi(e) {
4215
4305
  }
4216
4306
  ) : null });
4217
4307
  }
4218
- function bi(e) {
4219
- const [t, n] = I(
4308
+ function Ai(e) {
4309
+ const [t, n] = C(
4220
4310
  () => `
4221
- ${di({
4311
+ ${wi({
4222
4312
  cssCode: e.cssCode,
4223
4313
  contentId: e.contentId
4224
4314
  })}
4225
- ${ui({
4315
+ ${Ii({
4226
4316
  customFonts: e.customFonts
4227
4317
  })}
4228
- ${fi(e.isNestedRender)}
4318
+ ${Ri(e.isNestedRender)}
4229
4319
  `.trim()
4230
4320
  );
4231
4321
  return /* @__PURE__ */ s(
4232
- K,
4322
+ ee,
4233
4323
  {
4234
4324
  id: "builderio-content",
4235
4325
  styles: t,
@@ -4237,15 +4327,15 @@ ${fi(e.isNestedRender)}
4237
4327
  }
4238
4328
  );
4239
4329
  }
4240
- const pi = ({
4330
+ const Bi = ({
4241
4331
  content: e,
4242
4332
  data: t,
4243
4333
  locale: n
4244
4334
  }) => {
4245
- var r, o, l;
4246
- const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
4247
- return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((d) => {
4248
- d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
4335
+ var o, r, l;
4336
+ const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
4337
+ return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
4338
+ c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
4249
4339
  }), {
4250
4340
  ...i,
4251
4341
  ...a,
@@ -4254,7 +4344,7 @@ const pi = ({
4254
4344
  locale: n
4255
4345
  } : {}
4256
4346
  };
4257
- }, yi = ({
4347
+ }, Ni = ({
4258
4348
  content: e,
4259
4349
  data: t
4260
4350
  }) => e ? {
@@ -4265,46 +4355,46 @@ const pi = ({
4265
4355
  },
4266
4356
  meta: e == null ? void 0 : e.meta
4267
4357
  } : void 0;
4268
- function Pe(e) {
4269
- var c, h, b, m, x, u, g, v, p;
4270
- const [t, n] = I(
4358
+ function De(e) {
4359
+ var u, f, g, m, v, d, h, p, y;
4360
+ const [t, n] = C(
4271
4361
  () => {
4272
- var k, C;
4273
- return ai({
4362
+ var x, k;
4363
+ return vi({
4274
4364
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4275
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
4365
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
4276
4366
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4277
- contentId: (C = e.content) == null ? void 0 : C.id
4367
+ contentId: (k = e.content) == null ? void 0 : k.id
4278
4368
  });
4279
4369
  }
4280
4370
  );
4281
- function i(k) {
4282
- l((C) => ({
4283
- ...C,
4284
- rootState: k
4371
+ function i(x) {
4372
+ l((k) => ({
4373
+ ...k,
4374
+ rootState: x
4285
4375
  }));
4286
4376
  }
4287
- const [a, r] = I(
4377
+ const [a, o] = C(
4288
4378
  () => [
4289
- ...we(),
4379
+ ...Be(),
4290
4380
  ...e.customComponents || []
4291
4381
  ].reduce(
4292
- (k, { component: C, ...V }) => ({
4293
- ...k,
4382
+ (x, { component: k, ...V }) => ({
4383
+ ...x,
4294
4384
  [V.name]: {
4295
- component: C,
4296
- ...ye(V)
4385
+ component: k,
4386
+ ...Ie(V)
4297
4387
  }
4298
4388
  }),
4299
4389
  {}
4300
4390
  )
4301
- ), [o, l] = I(() => ({
4302
- content: yi({
4391
+ ), [r, l] = C(() => ({
4392
+ content: Ni({
4303
4393
  content: e.content,
4304
4394
  data: e.data
4305
4395
  }),
4306
4396
  localState: void 0,
4307
- rootState: pi({
4397
+ rootState: Bi({
4308
4398
  content: e.content,
4309
4399
  data: e.data,
4310
4400
  locale: e.locale
@@ -4315,12 +4405,12 @@ function Pe(e) {
4315
4405
  apiKey: e.apiKey,
4316
4406
  apiVersion: e.apiVersion,
4317
4407
  componentInfos: [
4318
- ...we(),
4408
+ ...Be(),
4319
4409
  ...e.customComponents || []
4320
4410
  ].reduce(
4321
- (k, { component: C, ...V }) => ({
4322
- ...k,
4323
- [V.name]: ye(V)
4411
+ (x, { component: k, ...V }) => ({
4412
+ ...x,
4413
+ [V.name]: Ie(V)
4324
4414
  }),
4325
4415
  {}
4326
4416
  ),
@@ -4329,31 +4419,31 @@ function Pe(e) {
4329
4419
  BlocksWrapperProps: e.blocksWrapperProps || {},
4330
4420
  nonce: e.nonce || "",
4331
4421
  model: e.model
4332
- })), d = L(!1);
4333
- if (!d.current) {
4334
- e.apiKey || z.error(
4422
+ })), c = H(!1);
4423
+ if (!c.current) {
4424
+ e.apiKey || Z.error(
4335
4425
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4336
4426
  );
4337
- const k = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4338
- k && _({
4339
- code: k,
4427
+ const x = (f = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4428
+ x && J({
4429
+ code: x,
4340
4430
  context: e.context || {},
4341
4431
  localState: void 0,
4342
- rootState: o.rootState,
4343
- rootSetState: (C) => {
4344
- Object.assign(o.rootState, C);
4432
+ rootState: r.rootState,
4433
+ rootSetState: (k) => {
4434
+ Object.assign(r.rootState, k);
4345
4435
  },
4346
4436
  isExpression: !1
4347
- }), d.current = !0;
4437
+ }), c.current = !0;
4348
4438
  }
4349
4439
  return /* @__PURE__ */ s(
4350
- De.Provider,
4440
+ He.Provider,
4351
4441
  {
4352
4442
  value: {
4353
4443
  registeredComponents: a
4354
4444
  },
4355
- children: /* @__PURE__ */ B(
4356
- gi,
4445
+ children: /* @__PURE__ */ $(
4446
+ Vi,
4357
4447
  {
4358
4448
  apiHost: e.apiHost,
4359
4449
  nonce: e.nonce,
@@ -4366,7 +4456,7 @@ function Pe(e) {
4366
4456
  locale: e.locale,
4367
4457
  enrich: e.enrich,
4368
4458
  showContent: e.showContent,
4369
- builderContextSignal: o,
4459
+ builderContextSignal: r,
4370
4460
  contentWrapper: e.contentWrapper,
4371
4461
  contentWrapperProps: e.contentWrapperProps,
4372
4462
  trustedHosts: e.trustedHosts,
@@ -4374,7 +4464,7 @@ function Pe(e) {
4374
4464
  setBuilderContextSignal: l,
4375
4465
  children: [
4376
4466
  e.isSsrAbTest ? /* @__PURE__ */ s(
4377
- Y,
4467
+ q,
4378
4468
  {
4379
4469
  id: "builderio-variant-visibility",
4380
4470
  scriptStr: t,
@@ -4382,20 +4472,20 @@ function Pe(e) {
4382
4472
  }
4383
4473
  ) : null,
4384
4474
  /* @__PURE__ */ s(
4385
- bi,
4475
+ Ai,
4386
4476
  {
4387
4477
  nonce: e.nonce || "",
4388
4478
  isNestedRender: e.isNestedRender,
4389
- contentId: (b = o.content) == null ? void 0 : b.id,
4390
- cssCode: (x = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
4391
- customFonts: (g = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
4479
+ contentId: (g = r.content) == null ? void 0 : g.id,
4480
+ cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4481
+ customFonts: (h = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4392
4482
  }
4393
4483
  ),
4394
4484
  /* @__PURE__ */ s(
4395
- $,
4485
+ _,
4396
4486
  {
4397
- blocks: (p = (v = o.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
4398
- context: o,
4487
+ blocks: (y = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4488
+ context: r,
4399
4489
  registeredComponents: a,
4400
4490
  linkComponent: e.linkComponent
4401
4491
  }
@@ -4406,50 +4496,60 @@ function Pe(e) {
4406
4496
  }
4407
4497
  );
4408
4498
  }
4409
- function vi(e) {
4410
- var o;
4411
- const [t, n] = I(
4412
- () => Zn({
4413
- canTrack: M(e.canTrack),
4499
+ function $i(e) {
4500
+ var r;
4501
+ const [t, n] = C(
4502
+ () => hi({
4503
+ canTrack: X(e.canTrack),
4414
4504
  content: e.content
4415
4505
  })
4416
4506
  );
4417
4507
  function i() {
4418
4508
  var l;
4419
- return ii(
4420
- G(e.content).map((d) => ({
4421
- id: d.testVariationId,
4422
- testRatio: d.testRatio
4509
+ return pi(
4510
+ ae(e.content).map((c) => ({
4511
+ id: c.testVariationId,
4512
+ testRatio: c.testRatio
4423
4513
  })),
4424
4514
  ((l = e.content) == null ? void 0 : l.id) || ""
4425
4515
  );
4426
4516
  }
4427
4517
  function a() {
4428
- return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4518
+ return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
4429
4519
  }
4430
- function r() {
4520
+ function o() {
4431
4521
  var l;
4432
4522
  return t ? {
4433
4523
  ...e.content,
4434
4524
  testVariationId: (l = e.content) == null ? void 0 : l.id
4435
- } : tt({
4525
+ } : mt({
4436
4526
  item: e.content,
4437
- canTrack: M(e.canTrack)
4527
+ canTrack: X(e.canTrack)
4438
4528
  });
4439
4529
  }
4440
- return R(() => {
4441
- }, []), /* @__PURE__ */ B(P, { children: [
4442
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4443
- Y,
4444
- {
4445
- id: "builderio-init-variants-fns",
4446
- scriptStr: ni(),
4447
- nonce: e.nonce || ""
4448
- }
4449
- ) : null,
4450
- t ? /* @__PURE__ */ B(P, { children: [
4530
+ return P(() => {
4531
+ }, []), /* @__PURE__ */ $(R, { children: [
4532
+ !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
4533
+ /* @__PURE__ */ s(
4534
+ q,
4535
+ {
4536
+ id: "builderio-init-variants-fns",
4537
+ scriptStr: yi(),
4538
+ nonce: e.nonce || ""
4539
+ }
4540
+ ),
4541
+ nt.includes(D) ? /* @__PURE__ */ s(
4542
+ q,
4543
+ {
4544
+ id: "builderio-init-personalization-variants-fns",
4545
+ nonce: e.nonce || "",
4546
+ scriptStr: Cn()
4547
+ }
4548
+ ) : null
4549
+ ] }) : null,
4550
+ t ? /* @__PURE__ */ $(R, { children: [
4451
4551
  /* @__PURE__ */ s(
4452
- K,
4552
+ ee,
4453
4553
  {
4454
4554
  id: "builderio-variants",
4455
4555
  styles: a(),
@@ -4457,15 +4557,15 @@ function vi(e) {
4457
4557
  }
4458
4558
  ),
4459
4559
  /* @__PURE__ */ s(
4460
- Y,
4560
+ q,
4461
4561
  {
4462
4562
  id: "builderio-variants-visibility",
4463
4563
  scriptStr: i(),
4464
4564
  nonce: e.nonce || ""
4465
4565
  }
4466
4566
  ),
4467
- (o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4468
- Pe,
4567
+ (r = ae(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
4568
+ De,
4469
4569
  {
4470
4570
  apiHost: e.apiHost,
4471
4571
  isNestedRender: e.isNestedRender,
@@ -4493,12 +4593,12 @@ function vi(e) {
4493
4593
  ))
4494
4594
  ] }) : null,
4495
4595
  /* @__PURE__ */ s(
4496
- Pe,
4596
+ De,
4497
4597
  {
4498
4598
  apiHost: e.apiHost,
4499
4599
  nonce: e.nonce,
4500
4600
  isNestedRender: e.isNestedRender,
4501
- content: r(),
4601
+ content: o(),
4502
4602
  showContent: !0,
4503
4603
  model: e.model,
4504
4604
  data: e.data,
@@ -4520,13 +4620,13 @@ function vi(e) {
4520
4620
  )
4521
4621
  ] });
4522
4622
  }
4523
- const xi = async ({
4623
+ const Wi = async ({
4524
4624
  builderContextValue: e,
4525
4625
  symbol: t
4526
4626
  }) => {
4527
4627
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4528
4628
  (e != null && e.apiKey))
4529
- return Be({
4629
+ return Le({
4530
4630
  model: t.model,
4531
4631
  apiKey: e.apiKey,
4532
4632
  apiVersion: e.apiVersion,
@@ -4536,11 +4636,11 @@ const xi = async ({
4536
4636
  }
4537
4637
  }
4538
4638
  }).catch((n) => {
4539
- z.error("Could not fetch symbol content: ", n);
4639
+ Z.error("Could not fetch symbol content: ", n);
4540
4640
  });
4541
4641
  };
4542
- function Si(e) {
4543
- var c, h, b, m, x;
4642
+ function Di(e) {
4643
+ var u, f, g, m, v;
4544
4644
  function t() {
4545
4645
  return "div";
4546
4646
  }
@@ -4548,36 +4648,36 @@ function Si(e) {
4548
4648
  return "div";
4549
4649
  }
4550
4650
  function i() {
4551
- var u, g;
4651
+ var d, h;
4552
4652
  return [
4553
4653
  e.attributes[j()],
4554
4654
  "builder-symbol",
4555
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4556
- (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4655
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4656
+ (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4557
4657
  ].filter(Boolean).join(" ");
4558
4658
  }
4559
- const [a, r] = I(() => {
4560
- var u;
4561
- return (u = e.symbol) == null ? void 0 : u.content;
4562
- }), [o, l] = I(() => {
4563
- var u;
4564
- return (u = e.symbol) == null ? void 0 : u.entry;
4659
+ const [a, o] = C(() => {
4660
+ var d;
4661
+ return (d = e.symbol) == null ? void 0 : d.content;
4662
+ }), [r, l] = C(() => {
4663
+ var d;
4664
+ return (d = e.symbol) == null ? void 0 : d.entry;
4565
4665
  });
4566
- function d() {
4567
- var u;
4568
- a && o === ((u = e.symbol) == null ? void 0 : u.entry) || xi({
4666
+ function c() {
4667
+ var d;
4668
+ a && r === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
4569
4669
  symbol: e.symbol,
4570
4670
  builderContextValue: e.builderContext
4571
- }).then((g) => {
4572
- var v;
4573
- g && (r(g), l((v = e.symbol) == null ? void 0 : v.entry));
4671
+ }).then((h) => {
4672
+ var p;
4673
+ h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
4574
4674
  });
4575
4675
  }
4576
- return R(() => {
4577
- }, []), R(() => {
4578
- d();
4676
+ return P(() => {
4677
+ }, []), P(() => {
4678
+ c();
4579
4679
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4580
- vi,
4680
+ $i,
4581
4681
  {
4582
4682
  nonce: e.builderContext.nonce,
4583
4683
  isNestedRender: !0,
@@ -4585,16 +4685,16 @@ function Si(e) {
4585
4685
  apiKey: e.builderContext.apiKey,
4586
4686
  context: {
4587
4687
  ...e.builderContext.context,
4588
- symbolId: (c = e.builderBlock) == null ? void 0 : c.id
4688
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4589
4689
  },
4590
4690
  customComponents: Object.values(e.builderComponents),
4591
4691
  data: {
4592
- ...(h = e.symbol) == null ? void 0 : h.data,
4692
+ ...(f = e.symbol) == null ? void 0 : f.data,
4593
4693
  ...e.builderContext.localState,
4594
- ...(b = a == null ? void 0 : a.data) == null ? void 0 : b.state
4694
+ ...(g = a == null ? void 0 : a.data) == null ? void 0 : g.state
4595
4695
  },
4596
4696
  canTrack: e.builderContext.canTrack,
4597
- model: (x = (m = e.symbol) == null ? void 0 : m.model) != null ? x : "",
4697
+ model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4598
4698
  content: a,
4599
4699
  linkComponent: e.builderLinkComponent,
4600
4700
  blocksWrapper: t(),
@@ -4603,16 +4703,16 @@ function Si(e) {
4603
4703
  ) });
4604
4704
  }
4605
4705
  export {
4606
- $ as Blocks,
4607
- me as BuilderContext,
4608
- dt as Button,
4609
- Xt as Columns,
4610
- vi as Content,
4611
- Zt as Fragment,
4612
- nn as Image,
4613
- an as Section,
4614
- Si as Symbol,
4615
- En as Text,
4616
- Gn as Video,
4617
- Pi as setClientUserAttributes
4706
+ _ as Blocks,
4707
+ ve as BuilderContext,
4708
+ kt as Button,
4709
+ un as Columns,
4710
+ $i as Content,
4711
+ dn as Fragment,
4712
+ hn as Image,
4713
+ gn as Section,
4714
+ Di as Symbol,
4715
+ Hn as Text,
4716
+ ui as Video,
4717
+ qi as setClientUserAttributes
4618
4718
  };